diff options
author | Katarzyna Kobierska <kkobierska@gmail.com> | 2016-09-01 13:49:34 +0200 |
---|---|---|
committer | Katarzyna Kobierska <kkobierska@gmail.com> | 2016-09-07 12:10:49 +0200 |
commit | 25ece82dab6de88a4d202ffc94a517f8d3e1d205 (patch) | |
tree | ad45d81387f2b927f3eea89e00d04dce2c863200 /doc/api/ci/lint.md | |
parent | ea714b625b68b801275adcc9294bc3ada2bcd8fb (diff) | |
download | gitlab-ce-25ece82dab6de88a4d202ffc94a517f8d3e1d205.tar.gz |
Rename file and update README
Diffstat (limited to 'doc/api/ci/lint.md')
-rw-r--r-- | doc/api/ci/lint.md | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/doc/api/ci/lint.md b/doc/api/ci/lint.md new file mode 100644 index 00000000000..876ee508474 --- /dev/null +++ b/doc/api/ci/lint.md @@ -0,0 +1,45 @@ +# Validate the .gitlab-ci.yml + +Check whether your .gitlab-ci.yml file is valid. + +``` +POST ci/lint +``` + +| Attribute | Type | Required | Description | +| ---------- | ------- | -------- | -------- | +| `content` | hash | yes | the .gitlab-ci.yaml content| + +```bash +curl --request POST "https://gitlab.example.com/api/v3/ci/lint?content=YAML+Content" +``` + +Example response: + +* valid content + +```json +{ + "status": "valid", + "errors": [] +} +``` + +* invalid content + +```json +{ + "status": "invalid", + "errors": [ + "variables config should be a hash of key value pairs" + ] +} +``` + +* without the content attribute + +```json +{ + "error": "content is missing" +} +``` |