scot.comhairle.testingPolisVoteV1

stuartlynn.bsky.social

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
{
  "description": "A vote on a statement in the Polis-style deliberation system",
  "key": "tid",
  "record": {
    "properties": {
      "createdAt": {
        "description": "Timestamp when the vote was created",
        "format": "datetime",
        "type": "string"
      },
      "poll": {
        "description": "Reference to the poll this vote belongs to",
        "ref": "#pollRef",
        "type": "ref"
      },
      "subject": {
        "description": "Reference to the statement being voted on",
        "ref": "#statementRef",
        "type": "ref"
      },
      "value": {
        "description": "The vote value",
        "enum": [
          "agree",
          "disagree",
          "pass"
        ],
        "type": "string"
      }
    },
    "required": [
      "value",
      "subject",
      "poll",
      "createdAt"
    ],
    "type": "object"
  },
  "type": "record"
}
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
{
  "description": "Reference to a poll record",
  "properties": {
    "cid": {
      "description": "Content identifier of the poll record",
      "format": "cid",
      "type": "string"
    },
    "uri": {
      "description": "AT-URI of the poll record",
      "format": "at-uri",
      "type": "string"
    }
  },
  "required": [
    "uri",
    "cid"
  ],
  "type": "object"
}
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
{
  "description": "Reference to a statement record",
  "properties": {
    "cid": {
      "description": "Content identifier of the statement record",
      "format": "cid",
      "type": "string"
    },
    "uri": {
      "description": "AT-URI of the statement record",
      "format": "at-uri",
      "type": "string"
    }
  },
  "required": [
    "uri",
    "cid"
  ],
  "type": "object"
}

Lexicon Garden

@