Permalink
Browse files

Merge branch 'master' of git://github.com/garycourt/json-schema

  • Loading branch information...
2 parents d882832 + 8c1e8af commit 832d474139109040b99937ab0f23d8ebfe4c6a8d @kriszyp kriszyp committed Nov 12, 2010
View
12 address
@@ -1,12 +0,0 @@
-{"description":"An Address following the convention of http://microformats.org/wiki/hcard",
- "type":"object",
- "properties":{
- "post-office-box":{"type":"string","requires":"street-address"},
- "extended-address":{"type":"string","requires":"street-address"},
- "street-address":{"type":"string","requires":"region"},
- "locality":{"type":"string","requires":"region", "required":true},
- "region":{"type":"string","requires":"country-name", "required":true},
- "postal-code":{"type":"string"},
- "country-name":{"type":"string", "required":true}
- }
-}
View
@@ -1,20 +0,0 @@
-{"description":"A representation of an event",
- "type":"object",
- "properties":{
- "dtstart":{"format":"date-time","type":"string","description":"Event starting time","required":true},
- "summary":{"type":"string","required":true},
- "location":{"type":"string"},
- "url":{"type":"string","format":"url"},
- "dtend":{"format":"date-time","type":"string","description":"Event ending time"},
- "duration":{"format":"date","type":"string","description":"Event duration"},
- "rdate":{"format":"date-time","type":"string","description":"Recurrence date"},
- "rrule":{"type":"string","description":"Recurrence rule"},
- "category":{"type":"string"},
- "description":{"type":"string"},
- "geo":"http://json-schema.org/geo"
- }
-}
-
-
-
-
View
43 card
@@ -1,43 +0,0 @@
-{"description":"A representation of a person, company, organization, or place",
- "type":"object",
- "properties":{
- "fn":{"description":"Formatted Name","type":"string"},
- "familyName":{"type":"string", "required":true},
- "givenName":{"type":"string", "required":true},
- "additionalName":{"type":"array","items":{"type":"string"}},
- "honorificPrefix":{"type":"array","items":{"type":"string"}},
- "honorificSuffix":{"type":"array","items":{"type":"string"}},
- "nickname":{"type":"string"},
- "url":{"type":"string","format":"url"},
- "email":{
- "type":"object",
- "properties":{
- "type":{"type":"string"},
- "value":{"type":"string","format":"email"}},
- },
- "tel":{
- "type":"object",
- "properties":{
- "type":{"type":"string"},
- "value":{"type":"string","format":"phone"}},
- },
- "adr":"http://json-schema.org/address",
- "geo":"http://json-schema.org/geo",
- "tz":{"type":"string"},
- "photo":{"format":"image","type":"string"},
- "logo":{"format":"image","type":"string"},
- "sound":{"format":"attachment","type":"string"},
- "bday":{"type":"string","format":"date"},
- "title":{"type":"string"},
- "role":{"type":"string"},
- "org":{"type":"object",
- "properties":{
- "organizationName":{"type":"string"},
- "organizationUnit":{"type":"string"}},
- }
- }
-}
-
-
-
-
View
@@ -0,0 +1,68 @@
+{
+ "$schema" : "http://json-schema.org/draft-00/hyper-schema#",
+ "id" : "http://json-schema.org/draft-00/hyper-schema#",
+
+ "properties" : {
+ "links" : {
+ "type" : "array",
+ "items" : {"$ref" : "http://json-schema.org/draft-00/links#"},
+ "optional" : true
+ },
+
+ "fragmentResolution" : {
+ "type" : "string",
+ "optional" : true,
+ "default" : "dot-delimited"
+ },
+
+ "root" : {
+ "type" : "boolean",
+ "optional" : true,
+ "default" : false
+ },
+
+ "readonly" : {
+ "type" : "boolean",
+ "optional" : true,
+ "default" : false
+ },
+
+ "pathStart" : {
+ "type" : "string",
+ "optional" : true,
+ "format" : "uri"
+ },
+
+ "mediaType" : {
+ "type" : "string",
+ "optional" : true,
+ "format" : "media-type"
+ },
+
+ "alternate" : {
+ "type" : "array",
+ "items" : {"$ref" : "#"},
+ "optional" : true
+ }
+ },
+
+ "links" : [
+ {
+ "href" : "{$ref}",
+ "rel" : "full"
+ },
+
+ {
+ "href" : "{$schema}",
+ "rel" : "describedby"
+ },
+
+ {
+ "href" : "{id}",
+ "rel" : "self"
+ }
+ ],
+
+ "fragmentResolution" : "dot-delimited",
+ "extends" : {"$ref" : "http://json-schema.org/draft-00/schema#"}
+}
@@ -1,9 +1,9 @@
{
- "$schema" : "http://json-schema.org/hyper-schema",
- "id" : "http://json-schema.org/json-ref",
+ "$schema" : "http://json-schema.org/draft-00/hyper-schema#",
+ "id" : "http://json-schema.org/draft-00/json-ref#",
- "items" : "#",
- "additionalProperties" : "#",
+ "items" : {"$ref" : "#"},
+ "additionalProperties" : {"$ref" : "#"},
"links" : [
{
View
@@ -0,0 +1,33 @@
+{
+ "$schema" : "http://json-schema.org/draft-00/hyper-schema#",
+ "id" : "http://json-schema.org/draft-00/links#",
+ "type" : "object",
+
+ "properties" : {
+ "href" : {
+ "type" : "string"
+ },
+
+ "rel" : {
+ "type" : "string"
+ },
+
+ "method" : {
+ "type" : "string",
+ "default" : "GET",
+ "optional" : true
+ },
+
+ "enctype" : {
+ "type" : "string",
+ "requires" : "method",
+ "optional" : true
+ },
+
+ "properties" : {
+ "type" : "object",
+ "additionalProperties" : {"$ref" : "http://json-schema.org/draft-00/hyper-schema#"},
+ "optional" : true
+ }
+ }
+}
View
@@ -0,0 +1,155 @@
+{
+ "$schema" : "http://json-schema.org/draft-00/hyper-schema#",
+ "id" : "http://json-schema.org/draft-00/schema#",
+ "type" : "object",
+
+ "properties" : {
+ "type" : {
+ "type" : ["string", "array"],
+ "items" : {
+ "type" : ["string", {"$ref" : "#"}]
+ },
+ "optional" : true,
+ "default" : "any"
+ },
+
+ "properties" : {
+ "type" : "object",
+ "additionalProperties" : {"$ref" : "#"},
+ "optional" : true,
+ "default" : {}
+ },
+
+ "items" : {
+ "type" : [{"$ref" : "#"}, "array"],
+ "items" : {"$ref" : "#"},
+ "optional" : true,
+ "default" : {}
+ },
+
+ "optional" : {
+ "type" : "boolean",
+ "optional" : true,
+ "default" : false
+ },
+
+ "additionalProperties" : {
+ "type" : [{"$ref" : "#"}, "boolean"],
+ "optional" : true,
+ "default" : {}
+ },
+
+ "requires" : {
+ "type" : ["string", {"$ref" : "#"}],
+ "optional" : true
+ },
+
+ "minimum" : {
+ "type" : "number",
+ "optional" : true
+ },
+
+ "maximum" : {
+ "type" : "number",
+ "optional" : true
+ },
+
+ "minimumCanEqual" : {
+ "type" : "boolean",
+ "optional" : true,
+ "requires" : "minimum",
+ "default" : true
+ },
+
+ "maximumCanEqual" : {
+ "type" : "boolean",
+ "optional" : true,
+ "requires" : "maximum",
+ "default" : true
+ },
+
+ "minItems" : {
+ "type" : "integer",
+ "optional" : true,
+ "minimum" : 0,
+ "default" : 0
+ },
+
+ "maxItems" : {
+ "type" : "integer",
+ "optional" : true,
+ "minimum" : 0
+ },
+
+ "pattern" : {
+ "type" : "string",
+ "optional" : true,
+ "format" : "regex"
+ },
+
+ "minLength" : {
+ "type" : "integer",
+ "optional" : true,
+ "minimum" : 0,
+ "default" : 0
+ },
+
+ "maxLength" : {
+ "type" : "integer",
+ "optional" : true
+ },
+
+ "enum" : {
+ "type" : "array",
+ "optional" : true,
+ "minItems" : 1
+ },
+
+ "title" : {
+ "type" : "string",
+ "optional" : true
+ },
+
+ "description" : {
+ "type" : "string",
+ "optional" : true
+ },
+
+ "format" : {
+ "type" : "string",
+ "optional" : true
+ },
+
+ "contentEncoding" : {
+ "type" : "string",
+ "optional" : true
+ },
+
+ "default" : {
+ "type" : "any",
+ "optional" : true
+ },
+
+ "maxDecimal" : {
+ "type" : "integer",
+ "optional" : true,
+ "minimum" : 0
+ },
+
+ "disallow" : {
+ "type" : ["string", "array"],
+ "items" : {"type" : "string"},
+ "optional" : true
+ },
+
+ "extends" : {
+ "type" : [{"$ref" : "#"}, "array"],
+ "items" : {"$ref" : "#"},
+ "optional" : true,
+ "default" : {}
+ }
+ },
+
+ "optional" : true,
+ "default" : {}
+}
Oops, something went wrong.

0 comments on commit 832d474

Please sign in to comment.