amazon-ion / ion-schema-rust

Rust implementation of Ion Schema
https://amazon-ion.github.io/ion-schema/sandbox
Apache License 2.0
12 stars 6 forks source link

Ability to get the possible Ion type(s) for an ISL type definition. #201

Open popematt opened 11 months ago

popematt commented 11 months ago

From an offline conversation with an Ion Schema user.

Here is a capability I definitely do need: an ability to take an ISL-defined type and determine its Ion-primitive type. For my use case, we don't want types that would admit multiple representations (e.g. string OR int). This is somewhat related to schema compatibility, because many systems would not like a schema change that changed representational types.