Closed
Description
The response headers defined in the OpenAPI document are lost. It would be great to be able to type-check them.
Two possibilities:
- (breaking change) Changing the format of the responses to include both content and headers:
responses: {
[statusCode: number]: {
content: { [contentType: string]: … },
headers: { [name: string]: string }
}
}
- (backwards-compatible change) Adding a separate field for response headers:
responses: {
[statusCode: number]: { [contentType: string]: … }
},
responseHeaders: {
[statusCode: number]: { [name: string]: string }
}
In the OpenAPI format, response headers are placed in the response objects such as
"responses": {
[statusCode]: {
"description": "…",
"content": {
[contentType]: …
},
"headers": { [name]: "…" }
}
}
Metadata
Metadata
Assignees
Labels
No labels