Closed desaikd closed 2 years ago
Issue #10
Description of changes: This PR works on the implementation of fields constraint.
fields
Changes:
IslConstraint::Fields
FieldsConstraint
Ion Schema specification:
fields: { <FIELD>... }
Declares one or more field constraints of a struct, where <FIELD> is defined as:
<FIELD>
<SYMBOL>: <VARIABLY_OCCURRING_TYPE>
For more information: https://amzn.github.io/ion-schema/docs/spec.html#fields
Tests: Adds unit tests as following:
Issue #10
Description of changes: This PR works on the implementation of
fields
constraint.Changes:
IslConstraint::Fields
FieldsConstraint
Ion Schema specification:
Declares one or more field constraints of a struct, where
<FIELD>
is defined as:For more information: https://amzn.github.io/ion-schema/docs/spec.html#fields
Tests: Adds unit tests as following: