-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed
Description
In JSON the key which is a number must be wrapped into "". This is not the case of yaml format. Different formats, different requirements. It does not make sense to force json requirements into yaml and this makes it really annoying to have to use "400": ... in YAML
Please also note that https://editor.swagger.io does not wrap status codes into "", which is correct, but contradictory to this spec:
I propose to remove the requirement of providing status codes as strings in YAML and only keep it for JSON, leaving the alignment for the transformation tool between two formats.
I already created #2147, which got rejected, so now I am opening this issue as the proposal for the next version of the spec.
Metadata
Metadata
Assignees
Labels
No labels
