Open
Description
Current Behavior
'2XX' status is always ignored
Expected Behavior
in absence of a more specific 200 range status code, the 2XX code should be used to type the response (see https://swagger.io/specification/v3/#responses-object)
Example
this leads to generated ApiResponse type to be typed to any
"responses": {
"2XX": {
"description": "…",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/MyComponent"
}
}
}
}
}
Metadata
Metadata
Assignees
Labels
No labels