openapi-backend icon indicating copy to clipboard operation
openapi-backend copied to clipboard

Build, Validate, Route, Authenticate and Mock using OpenAPI

Results 140 openapi-backend issues
Sort by recently updated
recently updated
newest added

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...

enhancement

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...

enhancement

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...

enhancement
help wanted
new feature

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.

enhancement

We should support providing swagger 2 as an input document and internally upgrading it to OAS 3

enhancement

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...

help wanted
good first issue
idea

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....

bug
help wanted