Skip to content

Commit

Permalink
fix AnyOf,AllOf and OneOf examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus committed Feb 8, 2016
1 parent e26cd55 commit 8f09899
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/all.js
Expand Up @@ -292,34 +292,34 @@ var schema = {
//
// The property must match one or more of the validation schema provided in
// the array, which can be as simple or complex and nested as desired.
"validateAnyOf": [
"validateAnyOf": { "anyOf" : [
{
"type": "boolean"
},
{
"type": "string"
}
],
]},
// The property must match all of the validation schema provided in the
// array, which can be as simple or complex and nested as desired.
"validateAllOf": [
"validateAllOf": { "allOf" : [
{
"type": "boolean"
},
{
"enum": [true]
}
],
]},
// The property must match only one of the validation schema provided in the
// array, which can be as simple or complex and nested as desired.
"validateOneOf": [
"validateOneOf": { "oneOf" : [
{
"type": "boolean"
},
{
"type": "integer"
}
],
]},

// --------------------------------------------------------------------
// References.
Expand Down

0 comments on commit 8f09899

Please sign in to comment.