openapi-backend
openapi-backend copied to clipboard
Build, Validate, Route, Authenticate and Mock using OpenAPI
When a request is handled, `parseRequest()` is called to parse the request using an operation. Then, the validator is called to validate the request. However, the parsed request is not...
In order to get better typing on the arguments for the [`Handler`](https://github.com/anttiviljami/openapi-backend/blob/master/src/backend.ts#L43) type, does it make sense to use generics for the request and response arguments? For example, what if...
An operation may have multiple security requirements, where each requirement may require multiple security schemes. This means that the same scheme could in theory be present in multiple requirements, but...
hello, Thanks for the great library. I was wondering if there is any plan to support [readOnly / writeOnly](https://swagger.io/specification/#schema-object) > If the property is marked as readOnly being true and...
When naming a schema key as `id` i always get a warning ``` console.warn schema id ignored 1 at Ajv._get$Id [as _getId] (node_modules/ajv/lib/ajv.js:392:30) at node_modules/ajv/lib/compile/resolve.js:241:19 at _traverse (node_modules/json-schema-traverse/index.js:65:5) at _traverse...
OpenAPI 3.x supports specifying accepted query parameters as a schema object, which among other things allows API spec authors to accept free-form parameters 🎉 Unfortunately, this does not currently work...
We always assume each operation has an operationId. However, according to the OAS spec, it's not actually required. We should provide a fallback for these cases.
We should support providing swagger 2 as an input document and internally upgrading it to OAS 3
First, I love this tool! Thanks a bunch for putting this together. Second, I'm looking for something like a "preResponseHandler" of sorts. I'm looking to check a specific header on...
I do response validation, and I want to make sure that when my login endpoint is _responding_ with a successful http response code that it's setting at least one cookie....