Skip to content

2XX status code is always ignored #4974

Open
@maddrag0n

Description

@maddrag0n

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions