Sha256: 897e54045d6bbe706d859582b1071c87d1e98426b339a1214c7f66585abbefd9

Contents?: true

Size: 1.58 KB

Versions: 1

Compression:

Stored size: 1.58 KB

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pupa-0.2.4 schemas/popolo/vote.json