datacontract lint
Validate that the datacontract.yaml is correctly formatted.
datacontract lint [OPTIONS] [LOCATION]
| Argument | Default | Description |
|---|---|---|
[LOCATION] | datacontract.yaml | The location (url, s3 url, or local path) of the data contract yaml. |
| Option | Default | Description |
|---|---|---|
--json-schema | — | The location (url or path) of the ODCS JSON Schema |
--output | — | Specify the file path where the test results should be written to (e.g., './test-results/TEST-datacontract.xml'). If no path is provided, the output will be printed to stdout. |
--output-format | — | The target format for the test results. Accepted values: json, junit. |
--all-errors | off | Report all JSON Schema validation errors instead of stopping after the first one. |
--inline-references / --no-inline-references | --inline-references | Resolve external references (currently: authoritativeDefinitions[type in {definition, semantics}]) in the contract and inline the fetched content from the configured entropy-data host. |
--debug / --no-debug | — | Enable debug logging |
datacontract lint datacontract.yaml
Guide: Open Data Contract Standard.