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

Implementation for inline imports #39

Closed desaikd closed 3 years ago

desaikd commented 3 years ago

Currently the isl_type_reference has a TODO for including an Import variant in IslTypeRef enum. The grammar for this inline import type reference is as below:

<IMPORT_TYPE>       ::= { id: <ID>, type: <TYPE_NAME> }

<TYPE_REFERENCE> ::=           <TYPE_NAME>
                   |           <TYPE_ALIAS>
                   |           <UNNAMED_TYPE_DEFINITION>
                   |           <IMPORT_TYPE>