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

Add bag type for storing constraints and type arguments #199

Open desaikd opened 1 year ago

desaikd commented 1 year ago

We don't have a bag type. There are plenty of 3P bag/multiset types available, but I don't have a particular one in mind. Either way, we need it so that we have proper equality since the order of the constraints is unimportant.

If open content was modeled separately from the constraints, we could use a set instead of a bag since two completely identical constraints are redundant and functionally equivalent to having only one of them.

_Originally posted by @popematt in https://github.com/amazon-ion/ion-schema-rust/pull/191#discussion_r1280990126_