<FromGitter>
<Blacksmoke16> i get no output using the example file and XSD from W3 schools, but setting one of the quantities to `-1` it prints `"Element 'quantity': '-1' is not a valid value of the atomic type 'xs:positiveInteger'.\n"` so seems to work
<renich>
Blacksmoke16: thanks
<renich>
Pretty cool!
<FromGitter>
<Blacksmoke16> could open an issue on GH about it. Maybe that's something they would want in stdlib given we're binding libXML2 anyway? :shrug:
<renich>
That should definitelly go in stdlib. It's super useful.
ur5us has joined #crystal-lang
<renich>
For example, in México, in order to issue "electronic invoices" to our IRS (SAT), we need to validate against xsd.
<FromGitter>
<Blacksmoke16> Yea my example doesn't have any error handling
<FromGitter>
<Blacksmoke16> Probably would need to add some of that in like in the SO post
<FromGitter>
<Blacksmoke16> To see what the actual issue is
_ht has joined #crystal-lang
ur5us has quit [Ping timeout: 248 seconds]
_ht has quit [Remote host closed the connection]
FromGitter has quit [Remote host closed the connection]
oprypin has quit [Quit: Bye]
oprypin has joined #crystal-lang
FromGitter has joined #crystal-lang
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 248 seconds]
tsujp has joined #crystal-lang
<FromGitter>
<paulocoghi> Hello everyone! ⏎ ⏎ Do you know how to inform a functions parameter type is of a specific NamedTuple format? Or it isn't necessary?