Closed desaikd closed 2 years ago
Commit changes for https://github.com/amzn/ion-schema-rust/pull/59/commits/099f7070bf66a9db2be12e0e12a1d57b03af7b67:
CoreISLType
enum from the ISL internal representation layerCoreIsl
from IslTypeRef
, Named(String)
enum
varint will now represent both aliases and builtin typesCoreIslTpeDeifnition
to be BuitlInTypeDefinition
Atomic(IonType, bool)
enum variant represents all ion types and all
'$' prefixed ion types where bool
represents whether they allow null or
notDerived(TypeDefinitionImpl)
enum variant represents all derived ISL
types like any, number, text, lobBuiltInTypeDefinition
(Atomic
+ Derived
) will be preloaded to
type_store (type_ids: 0-31)PendingTypes#get_total_types()
to include
type_store length for correct type_id calculationTypeStore#new()
now returns an IonSchemaResult<Self>
due to preload()
InvalidNull
enum variant for Violations
Issue #13
Description of changes: This PR works on implementing ISL core types
Changes:
CoreIslType
andCoreISLTypeDefinition
for lob, number, text, any core types implementationTypeDefintionImpl
methodparse_from_isl_type_and_update_pending_types
TypeStore
,PedningTypes
to store core typescore_types.rs
storesHashmap
of ISL core types and their definitionTest: adds tests for ISL core types