Search results
10 packages found
Koas status code automatically sets the response status code based on the success status code specified in the Open API object.
Koas operations maps operation IDs to Koa controller functions.
> [Koa][] + [OpenAPI Specification][] = Koas
Koas serializer converts a response body to the negotiated response format.
Koas parameters attempts to coerce path and query parameters to the type specified in their respective JSON schema.
Koas body parser parses and validates request bodies based on the current operation.
## Required peer dependencies
Koas spec handler exposes the Open API document as a JSON API call.
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`][].
Koas security checks if a request matches the security requirement of an operation. For example, given the following partial OpenAPI document: