scot.comhairle.testingPolisVoteV1

lexicon.store View official

Documentation

A vote on a statement in the Polis-style deliberation system

main record

A vote on a statement in the Polis-style deliberation system

Record Key tid Timestamp-based ID

Properties

createdAt string datetime Required

Timestamp when the vote was created

poll ref #pollRef Required

Reference to the poll this vote belongs to

subject ref #statementRef Required

Reference to the statement being voted on

value string Required

The vote value

Allowed: agree, disagree, pass
View raw schema
{
  "key": "tid",
  "type": "record",
  "record": {
    "type": "object",
    "required": [
      "value",
      "subject",
      "poll",
      "createdAt"
    ],
    "properties": {
      "poll": {
        "ref": "#pollRef",
        "type": "ref",
        "description": "Reference to the poll this vote belongs to"
      },
      "value": {
        "enum": [
          "agree",
          "disagree",
          "pass"
        ],
        "type": "string",
        "description": "The vote value"
      },
      "subject": {
        "ref": "#statementRef",
        "type": "ref",
        "description": "Reference to the statement being voted on"
      },
      "createdAt": {
        "type": "string",
        "format": "datetime",
        "description": "Timestamp when the vote was created"
      }
    }
  },
  "description": "A vote on a statement in the Polis-style deliberation system"
}
pollRef object

Reference to a poll record

Properties

cid string cid Required

Content identifier of the poll record

uri string at-uri Required

AT-URI of the poll record

View raw schema
{
  "type": "object",
  "required": [
    "uri",
    "cid"
  ],
  "properties": {
    "cid": {
      "type": "string",
      "format": "cid",
      "description": "Content identifier of the poll record"
    },
    "uri": {
      "type": "string",
      "format": "at-uri",
      "description": "AT-URI of the poll record"
    }
  },
  "description": "Reference to a poll record"
}
statementRef object

Reference to a statement record

Properties

cid string cid Required

Content identifier of the statement record

uri string at-uri Required

AT-URI of the statement record

View raw schema
{
  "type": "object",
  "required": [
    "uri",
    "cid"
  ],
  "properties": {
    "cid": {
      "type": "string",
      "format": "cid",
      "description": "Content identifier of the statement record"
    },
    "uri": {
      "type": "string",
      "format": "at-uri",
      "description": "AT-URI of the statement record"
    }
  },
  "description": "Reference to a statement record"
}

Lexicon Garden

@