php-swagger-test
php-swagger-test copied to clipboard
Fix: `allOf` match logic
We cannot simply merge allOf
schemas, because it can contain different fields (nested allOf
s, oneOf
s etc.) that may result in invalid schema after merging.
It's safer and clearer to match schemas one by one, my PR is about that.
In addition, now additionalProperties
:
- interpreting -
true
=>{}
,false
=>null
; - defaults to
true
(https://swagger.io/specification/)