title: How to specify JSON Schema if array is not required when there are no items in it?
body: <p>Say I have some json data like this:</p>
  
  <pre><code>{
      "quantity": 3,
      "modifiers": [{}]
  }
  </code></pre>
  
  <p>I do not want <code>modifiers</code> to be present if there is no intent of adding objects into <code>modifiers</code>. </p>
  
  <p>This should be the correct way if there are no <code>modifiers</code>:</p>
  
  <pre><code>{
      "quantity": 3,
  }
  </code></pre>
  
  <p>and this should be correct with <code>modifiers</code>:</p>
  
  <pre><code>{
      "quantity": 3,
      "modifiers": [{
          "testing": "some data here"
      }]
  }
  </code></pre>
  
  <p>How would I structure the JSON Schema to validate the above-most example to be incorrect?</p>
  
  <p>edit:
  Example of JSON Schema for the above examples:</p>
  
  <pre><code>{
      "type": "object",
      "properties": {
          "quantity": {
              "type": "integer",
              "minimum": 1
          },
          "modifiers": {
              "type": "array",
              "items": {
                  "type": "object",
                  "properties": {
                      "testing": {
                          "type": "string"
                      }
                  }
              },
              "minItems": 1
          }
      },
      "required": [
          "quantity"
      ]
  }
  </code></pre>