Skip to main content

datacontract lint

Validate that the datacontract.yaml is correctly formatted against the ODCS JSON Schema.

datacontract lint [LOCATION]
ArgumentDefaultDescription
LOCATIONdatacontract.yamlLocation (URL or path) of the data contract YAML.
OptionDefaultDescription
--json-schemaLocation (URL or path) of the ODCS JSON Schema.
--outputstdoutFile path to write the results to.
--output-formatjson or junit.
--all-errorsReport all JSON Schema validation errors instead of stopping after the first.
--inline-references / --no-inline-references--inline-referencesResolve and inline external references.
--debug / --no-debug--no-debugEnable debug logging.
datacontract lint datacontract.yaml