{ "$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" } } }