Sha256: ec71ab5faa0d6a4912b2c6c88d58578611531a592521bd12f263a58bdfbd73c6

Contents?: true

Size: 1.7 KB

Versions: 2

Compression:

Stored size: 1.7 KB

Contents

{
  "$schema": "http://json-schema.org/draft-03/schema#",
  "id": "http://popoloproject.com/schemas/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": "http://popoloproject.com/schemas/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": "http://popoloproject.com/schemas/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": "http://popoloproject.com/schemas/person.json#"
    }
  }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pupa-0.1.9 schemas/popolo/vote.json
pupa-0.1.8 schemas/popolo/vote.json