amazon-ion / ion-schema-rust

Rust implementation of Ion Schema
https://amazon-ion.github.io/ion-schema/sandbox
Apache License 2.0
12 stars 6 forks source link

fix(ion-schema): add non_exhaustive to ViolationCode enum #213

Closed etolbakov closed 4 months ago

etolbakov commented 4 months ago

Issue #, if available:

https://github.com/amazon-ion/ion-schema-rust/issues/209

Description of changes:

small tweak for ViolationCode to simplify new violation codes when they are added if/when new versions of ISL add new constraints.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

etolbakov commented 4 months ago

@popematt could you please take a look if that's what was expected? Let me know if anything needs to be adjusted.

popematt commented 4 months ago

Thanks for contributing this. This is exactly what was expected.