This PR works on adding ISL struct in the violation messages for anonymous type definitions. This adds more context in the violation message regarding where in the type definition the violation occurred.
List of changes:
adds Display for TypeDefinition
adds isl_type_struct field in IslTypeImpl and TypeDefinitionImpl that represents ISL type struct in string format
remove usage of Debug for violation messages and instead uses Display. (Change all the {:?} usage to {})
Issue #102:
Description of changes:
This PR works on adding ISL struct in the violation messages for anonymous type definitions. This adds more context in the violation message regarding where in the type definition the violation occurred.
List of changes:
Display
forTypeDefinition
isl_type_struct
field inIslTypeImpl
andTypeDefinitionImpl
that represents ISL type struct in string formatDebug
for violation messages and instead usesDisplay
. (Change all the{:?}
usage to{}
)Example of a violation message: Schema:
Type to be validated:
Ion value used for validation:
New violation message changed with this PR:
Previous violation message (prior tot his PR):
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.