Cast vote message specification
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://scholtz.github.io/AMS/AMS-0001/avote-vote.json",
"type": "object",
"title": "Vote cast schema",
"description": "Knowledge based pure democracy answer JSON document.",
"default": {},
"examples": [
{"q":"CRID3AHJGGVE75UTDO5GI7PXM6PUD6WXB7BTAD3IPWFTMUXUKHDA","a":{"A":35,"B":73,"C":20}}
],
"required": [
"q",
"a"
],
"properties": {
"q": {
"$id": "#/properties/q",
"type": "string",
"minLength": 1,
"maxLength": 60,
"title": "The question id",
"description": "Tx id of the question message from the blockchain",
"default": "",
"examples": [
"CRID3AHJGGVE75UTDO5GI7PXM6PUD6WXB7BTAD3IPWFTMUXUKHDA"
]
},
"a": {
"$id": "#/properties/a",
"type": "object",
"title": "Valid vote options",
"description": "Valid vote options. Object of mapping from code to weight of the answer.",
"default": {},
"examples": [
{"A":35,"B":73,"C":20}
],
"additionalProperties": true
}
},
"additionalProperties": false
}Last updated