membrane-php / membrane-core

Membrane is a general purpose input validation library, supports both PHP Attributes and OpenAPI specifications
Other
3 stars 3 forks source link

Handle schemas with multiple complex schemas #180

Open charjr opened 7 months ago

charjr commented 7 months ago

Related to #179 and will likely be fixed with the same change.

Currently it is assumed that if any xOf is present, you wont also have yOf or zOf.

This may not always be the case, currently we would not handle a schema like this:

schema:
  allOf:
    ...
  anyOf:
    ...
  oneOf:
    ...

Membrane would see the allOf and ignore anything else:

schema:
  allOf:
    ...