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

Change the default type from `any` to `$any` for ISL 2.0 #164

Closed desaikd closed 1 year ago

desaikd commented 1 year ago

Change the default type from any to $any for ISL 2.0.

Default type:

A type consists of a collection of zero or more constraints. The set of values which belong to a type is the intersection of the values that satisfy each constraint. In order for a value to be a valid instance of a type, the value must not violate any of the type’s constraints. A type definition with no constraints is equivalent to $any.

Ion Schema Specification: https://amazon-ion.github.io/ion-schema/docs/isl-2-0/spec#built-in-types