1268896Sbapt[ 2268896Sbapt { 3268896Sbapt "description": "anyOf", 4268896Sbapt "schema": { 5268896Sbapt "anyOf": [ 6268896Sbapt { 7268896Sbapt "type": "integer" 8268896Sbapt }, 9268896Sbapt { 10268896Sbapt "minimum": 2 11268896Sbapt } 12268896Sbapt ] 13268896Sbapt }, 14268896Sbapt "tests": [ 15268896Sbapt { 16268896Sbapt "description": "first anyOf valid", 17268896Sbapt "data": 1, 18268896Sbapt "valid": true 19268896Sbapt }, 20268896Sbapt { 21268896Sbapt "description": "second anyOf valid", 22268896Sbapt "data": 2.5, 23268896Sbapt "valid": true 24268896Sbapt }, 25268896Sbapt { 26268896Sbapt "description": "both anyOf valid", 27268896Sbapt "data": 3, 28268896Sbapt "valid": true 29268896Sbapt }, 30268896Sbapt { 31268896Sbapt "description": "neither anyOf valid", 32268896Sbapt "data": 1.5, 33268896Sbapt "valid": false 34268896Sbapt } 35268896Sbapt ] 36268896Sbapt }, 37268896Sbapt { 38268896Sbapt "description": "anyOf with base schema", 39268896Sbapt "schema": { 40268896Sbapt "type": "string", 41268896Sbapt "anyOf" : [ 42268896Sbapt { 43268896Sbapt "maxLength": 2 44268896Sbapt }, 45268896Sbapt { 46268896Sbapt "minLength": 4 47268896Sbapt } 48268896Sbapt ] 49268896Sbapt }, 50268896Sbapt "tests": [ 51268896Sbapt { 52268896Sbapt "description": "mismatch base schema", 53268896Sbapt "data": 3, 54268896Sbapt "valid": false 55268896Sbapt }, 56268896Sbapt { 57268896Sbapt "description": "one anyOf valid", 58268896Sbapt "data": "foobar", 59268896Sbapt "valid": true 60268896Sbapt }, 61268896Sbapt { 62268896Sbapt "description": "both anyOf invalid", 63268896Sbapt "data": "foo", 64268896Sbapt "valid": false 65268896Sbapt } 66268896Sbapt ] 67268896Sbapt } 68268896Sbapt] 69