php-swagger-test icon indicating copy to clipboard operation
php-swagger-test copied to clipboard

Fix: `allOf` match logic

Open ODAEL opened this issue 3 years ago • 0 comments

We cannot simply merge allOf schemas, because it can contain different fields (nested allOfs, oneOfs 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/)

ODAEL avatar Jun 04 '21 13:06 ODAEL