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

add implementation of `field_names` constraint #167

Closed desaikd closed 1 year ago

desaikd commented 1 year ago

Add implementation of field_names constraint as per ISL 2.0

Grammar:

<FIELD_NAMES> ::= field_names: <TYPE_REFERENCE>
                | field_names: distinct::<TYPE_REFERENCE>

Ion Schema Specification: https://amazon-ion.github.io/ion-schema/docs/isl-2-0/spec#field_names