open-api
open-api copied to clipboard
A Monorepo of various packages to power OpenAPI in node
https://ajv.js.org/standalone.html I want to precompile my openapi validation functions so that I don't have to do it at runtime but in a build step. Does this library expose that interface?
Dear open-api types team, I was doing an update to version 9 recently and got a few type errors which where easy to fix. However, we have a wrapper for...
I had to manually define: ``` type OpenAPIResponseValidatorResponsesObject = { [responseCode: string]: { schema: OpenAPIV2.Schema; }; }; ``` and coerce the type of what I pass to responses: ``` const...
https://github.com/googleapis/release-please
convertParametersToJSONSchema returns properties without the description. schema.properties[param.name].description = param.description; *Note: This checklist isn't meant to show up on the actual Pull Request (PR). It is added here to make you...
Regarding an API served at `https://example.com/api/sub-api/`, we should expect an API doc like this: ```yaml # api-doc.yml openapi: '3.0.2' info: title: Sub API version: '1.0.0' description: 'The Sub API does...
Hello, the `componentSchemas` field in `OpenAPIRequestValidator` is declared as: ```typescript componentSchemas?: IJsonSchema[]; ``` **But** looking to the tests, you are always passing an object instead of an array. When I...
This issue is related to #696. However openapi 3.0 specification says `exclusiveMinimum` and `exclusiveMaximum` should be boolean. They became numbers in openapi 3.1. `open-api-validator` should recognize if specified version is...
`openapi-request-validator` validates also the _format_ of the request's attributes (body, etc.), but what about `openapi-response-validator`? In `openapi-request-validator` this is is done [here](https://github.com/kogosoftwarellc/open-api/blob/9e8204657c656410aeafff9249834f66af6f97c3/packages/openapi-request-validator/index.ts#L127), with: ```ts import addFormats from 'ajv-formats'; // ......