# `datacontract lint`

{/* AUTOGENERATED from `datacontract --help`: do not edit by hand; regenerate with update_command_docs.py */}

Validate that the datacontract.yaml is correctly formatted.

```bash
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, oors (experimental). |
| `--all-errors` | off | Report all JSON Schema validation errors instead of stopping after the first one. |
| `--inline-references` / `--no-inline-references` | `--inline-references` | Resolve 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://cli.datacontract.com/semantics |
| `--debug` / `--no-debug` | — | Enable debug logging |

```bash
datacontract lint datacontract.yaml
```

Guide: **[Open Data Contract Standard](../open-data-contract-standard.md)**.
