Skip to content

@saflib/openapi


index

Interfaces

InterfaceDescription
components-

Type Aliases

Type AliasDescription
Address-
ExtractRequestBodyConvenience type to lookup the request body by operationId.
ExtractRequestPathParamsConvenience type to lookup the path params by operationId.
ExtractRequestQueryParamsConvenience type to lookup the query params by operationId.
ExtractResponseBodyConvenience type to lookup the response body by operationId.

Functions

FunctionDescription
castJsonTakes an imported JSON object and casts it to the OpenAPIV3.DocumentV3 type so that express-openapi-validator can validate the JSON against the OpenAPI spec without complaining about a type mismatch.