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

    Type Alias OpenAPIRequestBodyType<Doc, Path, Method, ContentType>

    OpenAPIRequestBodyType: IsSwagger2Doc<Doc> extends true
        ? __SchemaInferenceFellBack
        : ResolveMaybeRef<
            Doc,
            RequestBodySchemaOf<
                OperationOf<PathItemOf<Doc, Path>, Method>,
                ContentType,
            >,
        >

    Infer the TypeScript type of an OpenAPI operation's request body.

    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 (see PickContentType).

    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