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 `exponent` constraint for ISL 2.0 #155

Closed desaikd closed 1 year ago

desaikd commented 1 year ago

Description of changes:

This PR works on adding implementation of exponent constraint.

Grammar:

<EXPONENT> ::= exponent: <INT>
             | exponent: <RANGE_INT>

Ion Schema specification:

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

List of changes:

Tests:

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.