Skip to main content

datacontract lint

Validate that the datacontract.yaml is correctly formatted.

datacontract lint [OPTIONS] [LOCATION]
ArgumentDefaultDescription
[LOCATION]datacontract.yamlThe location (url, s3 url, or local path) of the data contract yaml.
OptionDefaultDescription
--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-errorsoffReport all JSON Schema validation errors instead of stopping after the first one.
--inline-references / --no-inline-references--inline-referencesResolve authoritativeDefinitions of type definition, semantics or businessDefinition and inline them into the contract. Relative URLs and semantics IRIs are looked up on the ENTROPY_DATA_HOST (default https://api.entropy-data.com), other URLs are fetched directly, file references are read from disk. See https://docs.datacontract.com/semantics
--debug / --no-debug—Enable debug logging
datacontract lint datacontract.yaml

Guide: Open Data Contract Standard.