This PR works on adding flattened_violations() that gets the leaf/core violations. This will be useful for wasm-schema-sandbox to include only the core violations.
List of changes:
adds flattened_violations() to Violation.
adds accessor methods ion_path, code, message for Violation.
adds changes for wasm methods to use flattened_violations() to render violations in sandbox.
Description of changes:
This PR works on adding
flattened_violations()
that gets the leaf/core violations. This will be useful forwasm-schema-sandbox
to include only the core violations.List of changes:
flattened_violations()
toViolation
.ion_path
,code
,message
forViolation
.flattened_violations()
to render violations in sandbox.Rendered view
https://desaikd.github.io/ion-schema/sandbox
Next Steps:
Create PR for the rendered view in
ion-schema
repositoryBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.