Fix: stop AdditionalPropertiesKeyword from throwing incorrect errors #148#149
Fix: stop AdditionalPropertiesKeyword from throwing incorrect errors #148#149BasilLangevin wants to merge 1 commit intoopis:masterfrom
AdditionalPropertiesKeyword from throwing incorrect errors #148#149Conversation
|
This is a quick fix but it doesn't handle |
1645ef8 to
b6e4541
Compare
|
Thank you for the guidance. I checked out both files ( After moving I haven't been able to reproduce this issue using "patternProperties" - properties defined with a pattern don't seem to be incorrectly invalidated by the |
|
I can confirm that this does the trick when specifying Any chance of getting this merged and released? I fixed it in our installation via a Composer patch, but that's not ideal. |
|
Any updates on this @sorinsarca @BasilLangevin ? We are keen to use this library but it is quite confusing when this bug crops up |
|
Hi ! The issue is a huge hindrance on adopting your library. It would be great if it would go forward ! Thansk in advance |
This commit prevents
Opis\JsonSchema\Keywords\AdditionalPropertiesKeywordfrom throwing incorrect errors when the data is invalid.To prevent erroneous invalidation, it checks the properties that have been defined in the current schema and removes them from the unchecked properties array.
This commit resolves #148