krakenjs / hapi-openapi

Build design-driven apis with OpenAPI (formerly swagger) 2.0 and hapi.
Other
211 stars 75 forks source link

Fixed failing `unknown` call for array schema #174

Closed sprootshift closed 4 years ago

sprootshift commented 4 years ago

After commit https://github.com/krakenjs/hapi-openapi/commit/429bfbfa53c8b8f1f5574f0e9447a3acdc669474, Joi object unknown method was called for all input schemas. This results in a runtime error for array input schema. This commit only invokes unknown method for object schema type. For convenience VS Code launch file to debug tape tests is also included.

sprootshift commented 4 years ago

Could you please release a patch version?

tlivings commented 4 years ago

Published.

sprootshift commented 4 years ago

Thanks!