@cfxlabsinc/b2b-services
    Preparing search index...
    OpenApiOperation: Pick<
        T,
        "summary"
        | "operationId"
        | "deprecated"
        | "description"
        | "tags",
    > & (
        RouteParams<T>[keyof RouteParams<T>] extends undefined
            ? { parameters?: RouteParams<T> }
            : { parameters: RouteParams<T> }
    ) & {
        requestBody: T["body"] extends TSchema
            ? { content: { "application/json": Static<T["body"]> } }
            : undefined;
        responses: {
            [statusCode in keyof T["response"]]: {
                content: {
                    "application/json": Static<
                        T["response"] extends Record<string, TSchema>
                            ? T["response"][statusCode]
                            : never,
                    >;
                };
            }
        };
    }

    An OpenAPI operation, as prescribed by openapi-typescript, based a given schema

    Type Parameters

    • T extends RouteSchema

      The schema defined in a Fastify route options