Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AddResponseHeadersFilter adds description twice #182

Open
runehalfdan opened this issue Jul 2, 2021 · 0 comments
Open

AddResponseHeadersFilter adds description twice #182

runehalfdan opened this issue Jul 2, 2021 · 0 comments

Comments

@runehalfdan
Copy link

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":  ""
    }
  }
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant