amazon-ion / ion-cli

Apache License 2.0
35 stars 15 forks source link

Adds 'report' output for ion schema validate #160

Closed popematt closed 3 weeks ago

popematt commented 3 weeks ago

Issue #, if available:

None

Description of changes:

Example usage and output (but ok is green and FAILED is red, just like the cargo test report).

❯ cargo run -- schema -X validate -R 'document' **/*.ion

code-gen-projects/input/good/scalar/empty_value.ion ... ok
code-gen-projects/input/good/scalar/valid_value.ion ... ok
code-gen-projects/input/good/sequence/empty_sequence.ion ... FAILED
code-gen-projects/input/good/sequence/valid_elements.ion ... ok
code-gen-projects/input/good/struct_with_fields/empty_values.ion ... FAILED
code-gen-projects/input/good/struct_with_fields/valid_fields.ion ... ok
code-gen-projects/input/good/struct_with_fields/valid_unordered_fields.ion ... ok

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.