openapi-backend
openapi-backend copied to clipboard
Build, Validate, Route, Authenticate and Mock using OpenAPI
In our OpeApi specification, we don't have any examples. I am assuming the below would generate the dynamic mock thanks to mockResponseForOperation. But I don't get any response. The data/mock...
I am working with [MSW][1] and [OpenAPI-backend][2] package. I want to mock the booth browser server and test server. I have OpenAPI definition available form with I generate generated.ts for...
I am getting errors on run from ajv that is being loaded in `openapi-backend`. ``` unknown format "date-time" ignored in schema at path "#/properties/timestamp" unknown format "date-time" ignored in schema...
Headers are often needed when mocking api responses. When using `mockResponseForOperation(...)` method, it would be helpful to have the same functionality available for the header definitions for the responses. `mockResponseForOperation(...)`...
On "OpenAPI" documentation, we can read that the request body is not required by default but a "required" flag exists to make it mandatory :  But this field seems...
It looks like openapi-backend isn't validating the Content-Type defined in the OpenAPI specification, and worse it will happily pass along payloads that aren't valid. For a quick example, if I...
Is it possible to register global error handler? E.g. if I register an API like: ``` getPets: async (c, event: Lambda.APIGatewayProxyEvent, context: Lambda.Context) => { throw new Error('unexpected error') },...
I'm using this library for mocking in a React Native application along with MSW. When using the openapi-backend on operations that don't return recursive response schemas, the library works flawlessly....
I am listening to releases using the Github Notifications, but I can not get a notification of new releases because new releases are never created, just tags.   Would...
Source of the issue - https://github.com/anttiviljami/openapi-backend/blob/a3503fb8162169b3784755457a27788e0d0b613a/src/router.ts#L244 **Actual behavior** Currently, URLs like http://resource.co/somePath and http://resource.co//somePath (with an extra slash after .co) are treated as the same URLs by the OpenApiBackend router....