Closed ozum closed 6 years ago
Hi ozum,
It throws an error, because OpenAPI 3 does not support alternative types.
Thanks for pointing out the error message issue. It will be fixed in the next release.
@mikunn Thanks for pointing reference document. I always confuse Json Schema and OpenAPI validation part. I don't understand why OpenAPI does not implement Json Schema as it is, it is widely accepted.
Hi,
If type property is an array of alternative types, throws error.
Example
Actual Result
Expected Result
No error, because alternative types are valid JSON Schema.
Additional Notes
Thrown error does not have any message. I see the message from code but not in actual error.
index.js Line 10:
InvalidTypeError.prototype = new Error();
Did you intend:
InvalidTypeError.prototype = Error;
Kind Regards,