koas-body-parser
Koas body parser parses and validates request bodies based on the current operation.
Koas body parser parses and validates request bodies based on the current operation.
> [Koa][] + [OpenAPI Specification][] = Koas
Koas operations maps operation IDs to Koa controller functions.
Koas parameters attempts to coerce path and query parameters to the type specified in their respective JSON schema.
Koas security checks if a request matches the security requirement of an operation. For example, given the following partial OpenAPI document:
Koas spec handler exposes the Open API document as a JSON API call.
Koas status code automatically sets the response status code based on the success status code specified in the Open API object.
Koas serializer converts a response body to the negotiated response format.
Koas Swagger UI serves Swagger UI. This requires the `specURL` variable to have been set on the `ctx.openApi` object. Typically this is done by combining it with [`koas-spec-handler`][].
## Required peer dependencies