hapi-openapi
hapi-openapi copied to clipboard
Build design-driven apis with OpenAPI (formerly swagger) 2.0 and hapi.
https://swagger.io/docs/specification/serialization/#query Especially the deepObject is not supported. Example : ``` - in: query name: filter required: false schema: type: object properties: website: type: array items: type: string country: type: array...
when a route require a header parameter this header should be added to the cors
When you define an endpoint with: ``` parameters: - name: role schema: type: array items: type: string required: false in: query ``` sending `?role=xxx` return a 400, `?role=xxx&role=yyy` works
As mentioned in #168 the error response tell little to nothing. There are 2 possible solutions: 1. Patch it here and add Boom with right (I guess the right one...
It's really hard on this project to maintain the formating. Would you accept a PR to add prettier so we get rid of this problem ?
When hapi-openapi tries to validate the payload for an endpoint, and the payload is just an empty object, it will replace the empty object with an `undefined` instead. In my...
Hapi and Joi have had a massive refactor of their libraries hapijs/joi#2037 hapi-openapi relies on this library to validate a swagger. The enjoi library also needs an update to use...
Currently enjoi 4.1.1 is being used and that pulls in a very old version of Hoek (5.0.4) that gets flagged by package scanners when using hapi-openapi.
OpenAPI v3?
The readme indicates that OpenAPI v3 support is coming soon. Is that getting close? Or is it still a ways out?
Addresses https://github.com/krakenjs/hapi-openapi/issues/146 When completed, this PR will add support for OpenAPI 3. This necessarily a very invasive change to the codebase. Due to this, I wanted to get a draft...