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

Remove usage of `type_ids` for type definition tests #61

Open desaikd opened 2 years ago

desaikd commented 2 years ago

As per a discussion in https://github.com/amzn/ion-schema-rust/pull/60#discussion_r814504671

Using numbers to refer to specific types is hard to read. Is there any way we can look these type references up by name in the tests here?

Maybe instead of type_ids, can use names stored in a HashMap or through TypeStore.