Skip to content

Commit e1d31e8

Browse files
authored
Merge pull request json-schema-org#191 from handrews/boolschema
Allow boolean schemas everywhere (meta-schema).
2 parents c0833df + ed60784 commit e1d31e8

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

schema.json

+3-15
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"uniqueItems": true
3636
}
3737
},
38-
"type": "object",
38+
"type": ["object", "boolean"],
3939
"properties": {
4040
"id": {
4141
"type": "string",
@@ -77,13 +77,7 @@
7777
"type": "string",
7878
"format": "regex"
7979
},
80-
"additionalItems": {
81-
"anyOf": [
82-
{ "type": "boolean" },
83-
{ "$ref": "#" }
84-
],
85-
"default": {}
86-
},
80+
"additionalItems": { "$ref": "#" },
8781
"items": {
8882
"anyOf": [
8983
{ "$ref": "#" },
@@ -101,13 +95,7 @@
10195
"maxProperties": { "$ref": "#/definitions/positiveInteger" },
10296
"minProperties": { "$ref": "#/definitions/positiveIntegerDefault0" },
10397
"required": { "$ref": "#/definitions/stringArray" },
104-
"additionalProperties": {
105-
"anyOf": [
106-
{ "type": "boolean" },
107-
{ "$ref": "#" }
108-
],
109-
"default": {}
110-
},
98+
"additionalProperties": { "$ref": "#" },
11199
"definitions": {
112100
"type": "object",
113101
"additionalProperties": { "$ref": "#" },

0 commit comments

Comments
 (0)