schemas/popolo/vote.json
{
"$schema": "http://json-schema.org/draft-03/schema#",
"id": "vote.json#",
"title": "Vote",
"description": "A voter's vote in a vote event",
"type": "object",
"properties": {
"id": {
"description": "The vote's unique identifier",
"type": ["string", "null"]
},
"vote_event_id": {
"description": "The ID of a vote event",
"type": ["string", "null"]
},
"vote_event": {
"description": "A vote event",
"$ref": "vote_event.json#"
},
"voter_id": {
"description": "The ID of the person or organization that is voting",
"type": ["string", "null"]
},
"voter": {
"description": "The person or organization that is voting",
"type": ["object", "null"]
},
"option": {
"description": "The option chosen by the voter, whether actively or passively",
"type": ["string", "null"]
},
"group_id": {
"description": "The ID of the voter's primary political group",
"type": ["string", "null"]
},
"group": {
"description": "The voter's primary political group",
"$ref": "organization.json#"
},
"role": {
"description": "The voter's role in the event",
"type": ["string", "null"]
},
"weight": {
"description": "The weight of the voter's vote",
"type": ["number", "null"]
},
"pair_id": {
"description": "The ID of the person with whom the voter is paired",
"type": ["string", "null"]
},
"pair": {
"description": "The person with whom the voter is paired",
"$ref": "person.json#"
}
}
}