-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
questionFurther information is requestedFurther information is requested
Description
In an OpenAPI we can define response data in headers. Is it supported to get these in?
Example spec:
....
paths:
/xyz:
get:
operationId: get_xyz
responses:
"200":
description: OK
headers:
X-Ratelimit:
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/xyz'
summary: Get XYZ
So with this spec I would expect the generator to generate request function where I can pass a callback which would not only process the response body but also a type holding the values from the response header, eg. a record like {xRatelimit : Int}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested