Skip to main content
Version: Next

internal.RequestBody

Home > @backstage/backend-openapi-utils > internal > RequestBody

Signature:

export type RequestBody<Doc extends RequiredDoc, Path extends Extract<keyof Doc['paths'], string>, Method extends keyof Doc['paths'][Path]> = DocOperation<Doc, Path, Method>['requestBody'] extends ImmutableReferenceObject ? 'requestBodies' extends ComponentTypes<Doc> ? ComponentRef<Doc, 'requestBodies', DocOperation<Doc, Path, Method>['requestBody']> : never : DocOperation<Doc, Path, Method>['requestBody'];

References: RequiredDoc, DocOperation, ImmutableReferenceObject, ComponentTypes, ComponentRef