Wrong error message when using an undefined property for a schema object property definition #165
Labels
bug
Something isn't working
needs investigation
Work is needed to figure out the root cause of the problem.
First of all, thanks for the efforts made on php-openapi. :)
Take the following simple (minimal reproducable) example:
We all know, this is perfectly valid. But for some odd reason, I thought the
summary
property is allowed in an Schema Object (i.e.id
in this case), so I wrote the above example this way:As this becomes invalid (
description
must be used instead), php-openapi must handle this and print a good error message. Let's see:Ignoring the second error message, the first one is really confusing, and is completely wrong in this case. This can be daunting if you run php-openapi on a big erroneous document and getting bunches of these errors.
The text was updated successfully, but these errors were encountered: