<commit_before># Validate the .gitlab-ci.yml (API)

> [Introduced][ce-5953] in GitLab 8.12.

Checks if your `.gitlab-ci.yml` file is valid.

```
POST /lint
```

| Attribute  | Type    | Required | Description |
| ---------- | ------- | -------- | -------- |
| `content`  | string    | yes      | the .gitlab-ci.yaml content|

```bash<commit_msg>Update lint.md to provide the correct path for the API<commit_after># Validate the .gitlab-ci.yml (API)

> [Introduced][ce-5953] in GitLab 8.12.

Checks if your `.gitlab-ci.yml` file is valid.

```
POST /ci/lint
```

| Attribute  | Type    | Required | Description |
| ---------- | ------- | -------- | -------- |
| `content`  | string    | yes      | the .gitlab-ci.yaml content|

```bash
{'fraction_non_alphanumeric': 0.23705722070844687, 'fraction_numerical': 0.01907356948228883, 'mean_word_length': 2.0625, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2077462', 'n_tokens_mistral': 281, 'n_tokens_neox': 254, 'n_words': 66}