mirror of
https://github.com/Sea-Haven-Industries/meal-order-manager.git
synced 2026-10-06 08:51:58 +00:00
Health, form-status, and roster document 400. form-status now maps current and returns 400 for a week that is not current or YYYY-WNN. Redocly treats 302 as a success response, matching the portal. Co-authored-by: Adam Moussa <amoussa1229@users.noreply.github.com>
29 lines
611 B
YAML
29 lines
611 B
YAML
# Same Redocly recommended ruleset as internal-portal (DEV-223 / DEV-289).
|
|
# Login-style redirects succeed with 302. Recommended only counts 2XX.
|
|
extends:
|
|
- recommended
|
|
|
|
rules:
|
|
operation-2xx-response: off
|
|
rule/operation-2xx-or-3xx-response:
|
|
subject:
|
|
type: Responses
|
|
message: Operation must define a 2XX or 3XX response.
|
|
severity: warn
|
|
assertions:
|
|
requireAny:
|
|
- "200"
|
|
- "201"
|
|
- "202"
|
|
- "204"
|
|
- "301"
|
|
- "302"
|
|
- "303"
|
|
- "307"
|
|
- "308"
|
|
- "2XX"
|
|
- "3XX"
|
|
|
|
apis:
|
|
meals@v1:
|
|
root: openapi.yaml
|