I'm generating a type file for the client and I noticed that a response type "default" isn't set as the OperationResponse type in the generated file. It is always set as "any". In my case default is the only one I have defined in the yaml.
Yaml
/things:
get:
tags:
- Things
description: Get Things
operationId: getThings
responses:
default:
description: default response
content:
application/json:
schema:
$ref: "#/components/schemas/Things"
application/xml:
schema:
$ref: "#/components/schemas/Things"`
Hello!
I'm generating a type file for the client and I noticed that a response type "default" isn't set as the OperationResponse type in the generated file. It is always set as "any". In my case default is the only one I have defined in the yaml.
Yaml
openapi.d.ts
Is this intentional behaviour that default responses aren't set as the OperationResponse's type.