Closed desaikd closed 1 year ago
This PR adds implementation of annotations constraint ISL 2.0.
<ANNOTATIONS> ::= annotations: <ANNOTATIONS_MODIFIER>... [ <SYMBOL>... ] | annotations: <TYPE_ARGUMENT> <ANNOTATIONS_MODIFIER> ::= required:: | closed::
https://amazon-ion.github.io/ion-schema/docs/isl-2-0/spec#annotations
IslAnnotationsConstraint
Anotations2_0Constraint
annotations
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Description of changes:
This PR adds implementation of annotations constraint ISL 2.0.
Grammar:
Ion schema specification:
https://amazon-ion.github.io/ion-schema/docs/isl-2-0/spec#annotations
List of changes:
IslAnnotationsConstraint
which holds two variants for standard and simple syntax of annotations constraintAnotations2_0Constraint
to handle ISL 2.0 related annotations validation based on a type referenceadds unit tests for
annotations
constraint ISL 2.0By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.