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

adds implementation of annotations constraint ISL 2.0 #175

Closed desaikd closed 1 year ago

desaikd commented 1 year ago

Description of changes:

This PR adds implementation of annotations constraint ISL 2.0.

Grammar:

<ANNOTATIONS> ::= annotations: <ANNOTATIONS_MODIFIER>... [ <SYMBOL>... ]
                | annotations: <TYPE_ARGUMENT>

<ANNOTATIONS_MODIFIER> ::= required::
                         | closed::

Ion schema specification:

https://amazon-ion.github.io/ion-schema/docs/isl-2-0/spec#annotations

List of changes: