corenova / yang-js

YANG parser and composer
Apache License 2.0
56 stars 18 forks source link

Strict option when validating against schema #110

Closed martinhAllied closed 4 years ago

martinhAllied commented 4 years ago

Would be good to have option to validate strictly. This would mean

sekur commented 4 years ago

Make sense. I'll first compile a list of non-strict behaviors and see how we can allow for a strict evaluation option.

martinhAllied commented 4 years ago

Great. Thank you so much. In our case it's been difficult to manage the unexpected fixes to the data. So cleanly rejecting everything would be of benefit.

sekur commented 4 years ago

@martinhAllied - sure thing. I've mainly used the framework so far for building applications so the autofix behaviors was desirable for making things work but I can see for pure data validation purposes it makes identifying issues with data format tricky.

sekur commented 4 years ago

Staged for 0.24 release

martinhAllied commented 4 years ago

Great! Thanks!