BlackSheep
BlackSheep copied to clipboard
Exclude Acccept, Content-type and Authorization header from OpenAPI docs
Hello,
Based on the OpenAPI specs, some headers are not supposed to be listed directly as parameters https://swagger.io/docs/specification/describing-parameters/#header-parameters
From the doc here https://www.neoteroi.dev/blacksheep/binders/#built-in-binders, the Accept header will generate the following openapi.json content which is invalid according to the OpenAPI specs.
The warning message comes from the swagger tool.
The proposal is to exclude the content-type, accept, authorization header from the parameters configuration.
Best regards, Pierre