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

Added failing tests to demonstrate / reproduce #94

Two things are needed: 1. A way to handle all preflight (`OPTIONS`) requests. Right now they are likely handled by the notFound handler. 2. A way to get the allowed...

enhancement

I'm generating the following yaml spec file with openapi 3.0.0 from my kotlin backend: ```yml Request: required: - field1 - field2 - field3 type: object properties: field1: type: string field2:...

I'm trying to use a YAML file to create a mock. I'm using example "express-ts-mock" (https://github.com/anttiviljami/openapi-backend/blob/master/examples/express-ts-mock/index.ts) but this is the result... ``` snakuzzo@laptop:~/workspace/openapi-backend/examples/express-ts-mock$ npm start > [email protected] start /home/snakuzzo/workspace/openapi-backend/examples/express-ts-mock >...

bug

Hi, I'm considering this tool for a project, comparing it to GraphQL or django-rest-framework in python. I'd like the types described in my oas to be enforced in my application...

idea

In the OpenAPI spec, it is possible to describe a single route which accepts request bodies of different content types: [Specification](http://spec.openapis.org/oas/v3.0.3#request-body-object) [Swagger docs](https://swagger.io/docs/specification/describing-request-body/) Is this supported in openAPI backend? In...

Hi, Maybe it's not possible, but I'm trying to serve multiple mocks under same path but without success. I have multiple openapi spec files and I need to create a...

Hi I am experiencing the following issues when upgrading to 4+ in the `validation.d.ts` ``` node_modules/openapi-backend/validation.d.ts(1,8): error TS1259: Module '"/node_modules/ajv/lib/ajv"' can only be default-imported using the 'esModuleInterop' flag [0] node_modules/openapi-backend/validation.d.ts(133,60):...

Given the following OpenAPI Spec document: ``` openapi: "3.0.0" info: title: Test API version: 1.0.0 servers: - url: http://localhost:5000 paths: '/items/{ids}': get: parameters: - schema: type: array items: type: string...