Currently when we compare two ISL models it accounts for the order of types, imports or constraints. It uses Vec to store all the types, imports and constraints information. This should be changed to use HashSet instead which can help with the equivalence of two schema models.
Also, ion-rust has IonData which stores a reference to the Element this can be used for the Ion elements related constraints like valid_values, contains.
Currently when we compare two ISL models it accounts for the order of types, imports or constraints. It uses
Vec
to store all the types, imports and constraints information. This should be changed to useHashSet
instead which can help with the equivalence of two schema models. Also,ion-rust
hasIonData
which stores a reference to theElement
this can be used for the Ion elements related constraints likevalid_values
,contains
.