lumeohq / xsd-parser-rs

A xsd/wsdl => rust code generator written in rust
Apache License 2.0
96 stars 34 forks source link

Implement validation trait for custom types #73

Closed victor-soloviev closed 4 years ago

victor-soloviev commented 4 years ago

To generate validation for structs, our custom types, made for built-in XSD types processing, should support validation too. This might be tricky for time-related types since their values are not always comparable, and even otherwise, their ordering might be complicated. For now, we could skip some edge cases.

victor-soloviev commented 4 years ago

In the new approach, XSD types are validated during parsing. This behavior is already implemented for custom types, so we can safely close this issue.