Closed desaikd closed 2 years ago
Issue #9 #10
Description of changes: This PR works on adding implementation of annotations constraint.
annotations
Grammar:
<ANNOTATION> ::= <SYMBOL> | required::<SYMBOL> | optional::<SYMBOL> <ANNOTATIONS_MODIFIER> ::= required:: | ordered:: | closed:: <ANNOTATIONS> ::= annotations: <ANNOTATIONS_MODIFIER>... [ <ANNOTATION>... ]
Ion Schema specification: https://amzn.github.io/ion-schema/docs/spec.html#annotations
List of changes:
Annotations
IslConstraint
Constraint
Annotation
AnnotationModifier
AnnotationsConstraint
ViolationCode::AnnotationMismatched
ViolationCode::UnexpectedAnnotation
VioaltionCode::MissingAnnotation
Tests: added unit tests for annotations implementation.
Issue #9 #10
Description of changes: This PR works on adding implementation of
annotations
constraint.Grammar:
Ion Schema specification: https://amzn.github.io/ion-schema/docs/spec.html#annotations
List of changes:
Annotations
enum variants forIslConstraint
andConstraint
Annotation
andAnnotationModifier
implementations to be used to represent annotationsAnnotationsConstraint
implementationViolationCode::AnnotationMismatched
,ViolationCode::UnexpectedAnnotation
,VioaltionCode::MissingAnnotation
enum variantTests: added unit tests for
annotations
implementation.annotations
constraintannotations
constraintannotations
constraint