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 changes for fields constraint implementation #63

Closed desaikd closed 2 years ago

desaikd commented 2 years ago

Issue #10

Description of changes: This PR works on the implementation of fields constraint.

Changes:

Ion Schema specification:

fields: { <FIELD>... }

Declares one or more field constraints of a struct, where <FIELD> is defined as:

<SYMBOL>: <VARIABLY_OCCURRING_TYPE>

For more information: https://amzn.github.io/ion-schema/docs/spec.html#fields

Tests: Adds unit tests as following: