Skip to content

Commit

Permalink
Merge pull request json-schema-org#191 from handrews/boolschema
Browse files Browse the repository at this point in the history
Allow boolean schemas everywhere (meta-schema).
  • Loading branch information
awwright authored Dec 13, 2016
2 parents c0833df + ed60784 commit e1d31e8
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"uniqueItems": true
}
},
"type": "object",
"type": ["object", "boolean"],
"properties": {
"id": {
"type": "string",
Expand Down Expand Up @@ -77,13 +77,7 @@
"type": "string",
"format": "regex"
},
"additionalItems": {
"anyOf": [
{ "type": "boolean" },
{ "$ref": "#" }
],
"default": {}
},
"additionalItems": { "$ref": "#" },
"items": {
"anyOf": [
{ "$ref": "#" },
Expand All @@ -101,13 +95,7 @@
"maxProperties": { "$ref": "#/definitions/positiveInteger" },
"minProperties": { "$ref": "#/definitions/positiveIntegerDefault0" },
"required": { "$ref": "#/definitions/stringArray" },
"additionalProperties": {
"anyOf": [
{ "type": "boolean" },
{ "$ref": "#" }
],
"default": {}
},
"additionalProperties": { "$ref": "#" },
"definitions": {
"type": "object",
"additionalProperties": { "$ref": "#" },
Expand Down

0 comments on commit e1d31e8

Please sign in to comment.