amazon-ion / ion-schema-rust

Rust implementation of Ion Schema
https://amazon-ion.github.io/ion-schema/sandbox
Apache License 2.0
13 stars 6 forks source link

adds implementation of `precision` constraint #83

Closed desaikd closed 2 years ago

desaikd commented 2 years ago

Issue #9 #10

Description of changes: This PR works on adding implementation of precision constraint.

Grammar:

<PRECISION> ::= precision: <INT>
              | precision: <RANGE<INT>>

Ion Schema specification: https://amzn.github.io/ion-schema/docs/spec.html#precision

List of changes:

Tests: added unit tests for precision implementation.