jpmckinney/pupa-ruby

View on GitHub
schemas/popolo/count.json

Summary

Maintainability
Test Coverage
{
  "$schema": "http://json-schema.org/draft-03/schema#",
  "id": "count.json#",
  "title": "Count",
  "description": "The number of votes for an option in a vote event",
  "type": "object",
  "properties": {
    "option": {
      "description": "An option in a vote event",
      "type": "string",
      "required": true
    },
    "value": {
      "description": "The number of votes for an option",
      "type": "integer",
      "required": true
    },
    "group_id": {
      "description": "The ID of a group of voters",
      "type": ["string", "null"]
    },
    "group": {
      "description": "A group of voters",
      "type": ["object", "null"]
    }
  }
}