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

Replace `content:closed` constraint with `closed::` modifier for `fields` constraint ISL 2.0 #159

Closed desaikd closed 1 year ago

desaikd commented 1 year ago

Add support for fields constraint as per ISL 2.0 which uses closed:: modifier.

Grammar:

<FIELDS> ::= fields: { <FIELD>... }
           | fields: closed::{ <FIELD>... }

<FIELD> ::= <SYMBOL>: <VARIABLY_OCCURRING_TYPE_REFERENCE>

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

desaikd commented 1 year ago

Fixed with #168