Infer the TypeScript type of an OpenAPI operation's response.
ContentType selects which media type's schema to infer; defaults
to DEFAULT_OPENAPI_CONTENT_TYPE and falls back to the first
declared content type when the default is absent.
Status-code resolution follows the OpenAPI priority order: concrete
code > class wildcard (e.g. "2XX") > "default". See
ResponseSchemaOf.
Swagger 2.0 documents are not normalised at the type level. When the
input is Swagger 2.0, this returns __SchemaInferenceFellBack so
callers can detect the fallback explicitly via a conditional type.
Infer the TypeScript type of an OpenAPI operation's response.
ContentTypeselects which media type's schema to infer; defaults to DEFAULT_OPENAPI_CONTENT_TYPE and falls back to the first declared content type when the default is absent.Status-code resolution follows the OpenAPI priority order: concrete code > class wildcard (e.g.
"2XX") >"default". See ResponseSchemaOf.Swagger 2.0 documents are not normalised at the type level. When the input is Swagger 2.0, this returns
__SchemaInferenceFellBackso callers can detect the fallback explicitly via a conditional type.