schema-components - v3.7.0
    Preparing search index...

    Type Alias OpenAPIResponseType<Doc, Path, Method, Status, ContentType>

    OpenAPIResponseType: IsSwagger2Doc<Doc> extends true
        ? __SchemaInferenceFellBack
        : ResolveMaybeRef<
            Doc,
            ResponseSchemaOf<
                OperationOf<PathItemOf<Doc, Path>, Method>,
                Status,
                ContentType,
            >,
        >

    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.

    Type Parameters