schemas/popolo+mysociety/organization.json
{
"$schema": "http://json-schema.org/draft-03/schema#",
"id": "http://popoloproject.com/schemas/organization.json#",
"title": "Organization",
"description": "A group with a common purpose or reason for existence that goes beyond the set of people belonging to it",
"type": "object",
"properties": {
"id": {
"description": "The organization's unique identifier",
"type": ["string", "object", "null"]
},
"name": {
"description": "A primary name, e.g. a legally recognized name",
"type": ["string", "object"],
"required": true
},
"other_names": {
"description": "Alternate or former names",
"type": "array",
"items": {
"$ref": "http://popoloproject.com/schemas/other_name.json#"
}
},
"identifiers": {
"description": "Issued identifiers",
"type": "array",
"items": {
"$ref": "http://popoloproject.com/schemas/identifier.json#"
}
},
"classification": {
"description": "An organization category, e.g. committee",
"type": ["string", "object", "null"]
},
"parent_id": {
"description": "The ID of the organization that contains this organization",
"type": ["string", "object", "null"]
},
"parent": {
"description": "The organization that contains this organization",
"$ref": "http://popoloproject.com/schemas/organization.json#"
},
"founding_date": {
"description": "A date of founding",
"type": ["string", "object", "null"],
"pattern": "^[0-9]{4}(-[0-9]{2}){0,2}$"
},
"dissolution_date": {
"description": "A date of dissolution",
"type": ["string", "object", "null"],
"pattern": "^[0-9]{4}(-[0-9]{2}){0,2}$"
},
"contact_details": {
"description": "Means of contacting the organization",
"type": "array",
"items": {
"$ref": "http://popoloproject.com/schemas/contact_detail.json#"
}
},
"links": {
"description": "URLs to documents about the organization",
"type": "array",
"items": {
"$ref": "http://popoloproject.com/schemas/link.json#"
}
},
"memberships": {
"description": "The relationships to which the organization is a party",
"type": "array",
"items": {
"$ref": "http://popoloproject.com/schemas/membership.json#"
}
},
"posts": {
"description": "Posts within the organization",
"type": "array",
"items": {
"$ref": "http://popoloproject.com/schemas/post.json#"
}
}
}
}