Skip to content

Use json-schema-merge-allof to merge allOf fields

Snwachukwu requested to merge github/fork/ottomata/otto3 into master

Created by: ottomata

This allows for schemas to more easily include each other using $ref and allOf. E.g.

allOf:
  - $ref: /path/to/common/schema/1.0.0
  - properties:
      myfieldA:
        type: string
    required:
      - myfieldA

Dereferencing this schema will now also merge everything from the common schema with the properties for this schema, included any required properties.

Merge request reports