Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Commit cf45c27

Browse files
committed
Core changes:
* Removed "integer" type in favor of {"type":"number", "divisibleBy":1}. * Restricted "type" to only the core JSON types. Content changes: * Improved wording of several sections. * Merged Conventions and Terminology sections. * Defined terms used in specification.
1 parent baa948a commit cf45c27

File tree

2 files changed

+162
-123
lines changed

2 files changed

+162
-123
lines changed

draft-04/schema

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,19 @@
55

66
"properties" : {
77
"type" : {
8-
"type" : ["string", "array"],
8+
"type" : [
9+
{
10+
"id" : "#simple-type",
11+
"type" : "string",
12+
"enum" : ["object", "array", "string", "number", "boolean", "null", "any"]
13+
},
14+
"array"
15+
],
916
"items" : {
10-
"type" : ["string", {"$ref" : "#"}]
17+
"type" : [
18+
{"$ref" : "#simple-type"},
19+
{"$ref" : "#"}
20+
]
1121
},
1222
"uniqueItems" : true,
1323
"default" : "any"

0 commit comments

Comments
 (0)