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

`ViolationCode` should be marked as non-exhaustive #209

Open popematt opened 6 months ago

popematt commented 6 months ago

https://github.com/amazon-ion/ion-schema-rust/blob/34eec9e7c9ae7fb097f6f390119a4d06d4d1c3f0/ion-schema/src/violation.rs#L92-L116

ViolationCode should be marked as #[non_exhaustive] so that new violation codes can be added if/when new versions of ISL add new constraints.