Skip to content

Commit 3e747d1

Browse files
author
Oleksandr Dzhychko
authored
Merge pull request #1261 from modelix/eliminate-errors-in-api-linting
ci: eliminate errors in API linting
2 parents 15279c5 + 1002631 commit 3e747d1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.spectral.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,17 @@ overrides:
4545
rules:
4646
must-always-return-json-objects-as-top-level-data-structures: warn
4747
- files:
48-
- 'model-server-v2.yaml#/components/responses/modelql-404'
48+
- 'model-server-v2.yaml#/components/responses/ModelQlQueryExecutionFailed'
4949
rules:
5050
must-use-problem-json-for-errors: warn
51+
# We continue using 409 instead of 400 to not make breaking changes.
52+
# When introducing code 409,
53+
# we were not aware that it was considered an uncommon status code
54+
# and that uncommon codes should not be used.
55+
# See https://opensource.zalando.com/restful-api-guidelines/#150
56+
must-use-standard-http-status-codes: warn
57+
# Plain text instead of a JSON object is also still used to avoid breaking changes.
58+
must-always-return-json-objects-as-top-level-data-structures: warn
5159
- files:
5260
- 'model-server-v1.yaml#/paths/~1getAll'
5361
- 'model-server-v1.yaml#/paths/~1getEmail'

0 commit comments

Comments
 (0)