mirror of
https://github.com/Sea-Haven-Industries/afterhours-shift-manager.git
synced 2026-09-30 04:33:10 +00:00
33 lines
816 B
YAML
33 lines
816 B
YAML
|
|
# Same Redocly recommended ruleset as internal-portal (DEV-223 / DEV-289).
|
||
|
|
# Recommended operation-2xx-response does not count 302. Login-style redirects
|
||
|
|
# succeed with 302, so that rule is replaced by operation-2xx-or-3xx-response
|
||
|
|
# at error. operation-4xx-response is promoted to error so missing 4xx fails CI.
|
||
|
|
extends:
|
||
|
|
- recommended
|
||
|
|
|
||
|
|
rules:
|
||
|
|
operation-2xx-response: off
|
||
|
|
operation-4xx-response: error
|
||
|
|
rule/operation-2xx-or-3xx-response:
|
||
|
|
subject:
|
||
|
|
type: Responses
|
||
|
|
message: Operation must define a 2XX or 3XX response.
|
||
|
|
severity: error
|
||
|
|
assertions:
|
||
|
|
requireAny:
|
||
|
|
- "200"
|
||
|
|
- "201"
|
||
|
|
- "202"
|
||
|
|
- "204"
|
||
|
|
- "301"
|
||
|
|
- "302"
|
||
|
|
- "303"
|
||
|
|
- "307"
|
||
|
|
- "308"
|
||
|
|
- "2XX"
|
||
|
|
- "3XX"
|
||
|
|
|
||
|
|
apis:
|
||
|
|
afterhours@v1:
|
||
|
|
root: openapi.yaml
|