Skip to content

Support draft-7 if conditional in required fields #136

@hx-markterry

Description

@hx-markterry

Support concatenation of required fields as follows

"required": [
    "type",
    "code",
    "provider",
    "supplier",
    "currency",
    "price",
    "location",
    "isCached",
    "language"
  ],
  "anyOf": [
    {
      "if": {
        "properties": { "type": { "const": "hotel" } }
      },
      "then": {
        "required": ["checkIn", "checkOut", "room"]
      }
    }
  ]

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