OpenApiBuildResult
Result from building OpenAPI middleware with schemas exposed. Useful when you want to use the schemas with asyncHandler's validation.
Properties
bodySchema?
optionalbodySchema?:Record<string,OpenApiSchemaProperty>
Request body schema if defined
middleware
middleware:
RequestHandler
The OpenAPI documentation middleware
querySchema?
optionalquerySchema?:Record<string,OpenApiSchemaProperty>
Query parameter schemas if defined
validationEnabled
validationEnabled:
boolean
Whether validation was enabled on this builder