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 `scale` constraint #84

Closed desaikd closed 2 years ago

desaikd commented 2 years ago

Issue #9 #10

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

Grammar:

<SCALE> ::= scale: <INT>
              | scale: <RANGE<INT>>

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

List of changes:

Tests: added unit tests for scale implementation.