title: What is the difference between "anyof" and "oneof" in z schema?
body: <p>Its looking like both works fine with my input validation code. Then what is the exact difference?</p>
  
  <p><strong>Schema with oneof</strong></p>
  
  <pre><code>[{
    "id": "MyAction",
    "oneOf": [{ "$ref": "A1" },
              { "$ref": "A2" }]
   },
   {
    "id": "A1",
    "properties": {
        "class1": { "type": "string"},
        "class2": { "type": "string"}
     }
   },
   {
    "id": "A2",
    "properties": {
        "class2": { "type": "string"},
        "class3": { "type": "string"}
     }
   }
  ]
  </code></pre>
  
  <p><strong>Schema with anyof</strong></p>
  
  <pre><code>    [{
    "id": "MyAction",
    "anyOf": [{ "$ref": "A1" },
              { "$ref": "A2" }]
   },
   {
    "id": "A1",
    "properties": {
        "class1": { "type": "string"},
        "class2": { "type": "string"}
     }
   },
   {
    "id": "A2",
    "properties": {
        "class2": { "type": "string"},
        "class3": { "type": "string"}
     }
   }
  ]
  </code></pre>