tryGetRequestBodyFromRef

fun tryGetRequestBodyFromRef(requestBody: RequestBody, openAPI: OpenAPI): RequestBody

Attempts to dereference a request body $ref against the OpenAPI components. Returns the dereferenced request body if found; otherwise returns the original.

Return

dereferenced request body or the original input

Parameters

requestBody

request body that may contain a $ref

openAPI

OpenAPI document providing component definitions