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 `element` constraint implementation #74

Closed desaikd closed 2 years ago

desaikd commented 2 years ago

Issue #9 #10

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

Grammar:

<ELEMENT> ::= element: <TYPE_REFERENCE>

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

List of changes:

Tests: added unit tests for element implementation.