Skip to content

AddResponseHeadersFilter adds description twice #182

Open
@runehalfdan

Description

@runehalfdan

When generating the response header info, description is added both to the OpenApiHeader and OpenApiSchema.

Also, since Format defaults to empty string, an empty Format-entry is added to the Schema (Currently we work around this by setting Format to null explicitly)

For large documents with many operations, this adds significant bloat to schema
Example:

"headers": {
  "link": {
    "description": "Description of response header",
    "schema": {
      "type": "string",
      "description": "Description of response header",
      "format":  ""
    }
  }
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions