Skip to content

Need a config option to allow not merging certain allOf schemas #23

@eliaslevy

Description

@eliaslevy

allOf schemas using multiple conditional schemas using if, then, and else cannot be merged. E.g.

  allOf:
    - if:   { properties: { foo: { const: true } } }
      then: { required: [ bar ] }
    - if:   { properties: { xyz: { const: true } } }
      then: { required: [ abc ] } 

There is no way to write a resolver for if and then.

If would be useful to have an option that tell the library to skip trying to resolve certain schema keys and leave them in the allOf.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions