Closed desaikd closed 1 year ago
This PR works on adding implementation of exponent constraint.
exponent
<EXPONENT> ::= exponent: <INT> | exponent: <RANGE_INT>
https://amazon-ion.github.io/ion-schema/docs/isl-2-0/spec#exponent
Exponent
IslConstraintImpl
Constraint
ExponentConstraint
Range
range::[exclusive::2, exclusive::3]
added unit tests for exponent implementation.
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 works on adding implementation of
exponent
constraint.Grammar:
Ion Schema specification:
https://amazon-ion.github.io/ion-schema/docs/isl-2-0/spec#exponent
List of changes:
exponent
constraint implementationExponent
enum variants forIslConstraintImpl
andConstraint
ExponentConstraint
implementationsexponent
Range
to expect only List types while parsing from ISL.range::[exclusive::2, exclusive::3]
)Tests:
added unit tests for
exponent
implementation.exponent
constraintexponent
constraintexponent
constraintexponent
testsBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.