Permalink
Browse files

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.
  • Loading branch information...
1 parent baa948a commit cf45c27f895ba7f8bc95eb7dd96cbd51dc9824a0 @garycourt garycourt committed Nov 30, 2011
Showing with 162 additions and 123 deletions.
  1. +12 −2 draft-04/schema
  2. +150 −121 draft-zyp-json-schema-04.xml
View
@@ -5,9 +5,19 @@
"properties" : {
"type" : {
- "type" : ["string", "array"],
+ "type" : [
+ {
+ "id" : "#simple-type",
+ "type" : "string",
+ "enum" : ["object", "array", "string", "number", "boolean", "null", "any"]
+ },
+ "array"
+ ],
"items" : {
- "type" : ["string", {"$ref" : "#"}]
+ "type" : [
+ {"$ref" : "#simple-type"},
+ {"$ref" : "#"}
+ ]
},
"uniqueItems" : true,
"default" : "any"
Oops, something went wrong.

0 comments on commit cf45c27

Please sign in to comment.