title: Json Schema - How to make anyOf two or more properties required
body: <p>I have this parent schema:</p>
  
  <pre><code>{
      "definitions": {
          "parcel": {
              "type": "object",
              "properties": {
                  "id": {
                      "type": "string"
                  },
                  "accountNumber": {
                      "type": "string"
                  },
                  "parcelNumber": {
                      "type": "string"
                  },
                  "propertyType": {
                      "type": "string"
                  },
                  "address": {
                      "$ref": "address.json#/definitions/address"
                  },
                  "coordinates": {
                      "$ref": "coordinates.json#/definitions/coordinates"
                  }
              },
              "required": ["accountNumber", "parcelNumber"]
          }
      }
  }
  </code></pre>
  
  <p>Following are the referenced sub-schemas:</p>
  
  <pre><code>{
      "definitions": {
          "address": {
              "type": "object",
              "properties": {
                  "addressString": {
                      "type": "string",
                      "addressType": {
                          "enum": ["residential", "business"]
                      }
                  },
                  "required": ["addressString"]
              }
          }
      }
  }
  
      {
      "definitions": {
          "coordinates": {
              "type": "object",
              "properties": {
                  "latitude": {
                      "type": "number"
                  },
                  "longitude": {
                      "type": "number"
                  },
                  "projection": {
                      "type": "string"
                  }
              },
              "required": ["latitude ", "longitude", " projection"]
          }
      }
  }
  </code></pre>
  
  <p>I want to apply the following conditions to the parent schema.</p>
  
  <ol>
  <li>Either address or coordinates or both are provided.</li>
  <li>It should fail the validation if neither address nor coordinates is provided.</li>
  </ol>