Closed jobarr-amzn closed 1 year ago
ion-schema-rust
does support document
core type. I tried reproducing this issue to see if there was any other bug here. It seems to work fine withis repository's example CLI.
I tried the following command:
cargo run --package ion-schema --example schema load --directory <AUTHORITY-FOLDER> --schema <SCHEMA-FILE>
Output for the above command generates a Schema
struct without any errors.
How was this issue produced? If you have used ion-cli
then it is pointing to an earlier version of ion-schema-rust
and hence this issue might be produced from there.
I will be updating that to the latest version after a new release with latest GitHub changes for ion-schema-rust
.
Yeah, I used ion-cli
. It looks like document
support was added in this PR: https://github.com/amzn/ion-schema-rust/pull/116 .
Closing in favor of https://github.com/amzn/ion-cli/issues/38
ion-schema-rust
does not seem to support thedocument
core type, described in the Ion schema spec here.Given this content adapted from the
document
example in the Ion Schema specification docs:ion-schema-rust
fails because there is no knowndocument
type: