# lint

> Validate that the datacontract.yaml is correctly formatted.

# `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. |
| `--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 |

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

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