{ "$schema" : "http://json-schema.org/draft-04/schema#", "description" : "Collection of domain entities.", "type" : "object", "additionalProperties" : false, "required" : [ "metadata" ], "properties" : { "domains" : { "type" : "array", "minItems" : 0, "uniqueItems" : true, "items" : { "$schema" : "http://json-schema.org/draft-04/schema#", "description" : "Representation of a single custom domain entity.", "type" : "object", "additionalProperties" : false, "required" : [ "id", "metadata", "name" ], "properties" : { "id" : { "type" : "string" }, "metadata" : { "type" : "object", "allOf" : [ { "title" : "Entity Metadata", "type" : "object", "required" : [ "location", "documentation" ], "properties" : { "location" : { "type" : "string", "format" : "uri" }, "documentation" : { "type" : "string", "format" : "uri" }, "related" : { "type" : "object" } } }, { "type" : "object", "required" : [ "related" ], "properties" : { "related" : { "type" : "object", "additionalProperties" : false, "required" : [ "pages", "account", "sub_account" ], "properties" : { "pages" : { "type" : "string", "format" : "uri" }, "account" : { "type" : "string", "format" : "uri" }, "sub_account" : { "type" : "string", "format" : "uri" } } } } } ] }, "name" : { "type" : "string" } } } }, "metadata" : { "title" : "Collection Metadata", "type" : "object", "allOf" : [ { "title" : "Entity Metadata", "type" : "object", "required" : [ "location", "documentation" ], "properties" : { "location" : { "type" : "string", "format" : "uri" }, "documentation" : { "type" : "string", "format" : "uri" }, "related" : { "type" : "object" } } }, { "type" : "object", "required" : [ "count" ], "properties" : { "count" : { "type" : "integer" } } } ] } } }