Unwalled.Garden

Status: DRAFT. Part of the upcoming Beaker Browser 0.9 release.

Vote unwalled.garden/vote



Example

{
  "type": "unwalled.garden/vote",
  "topic": "dat://beakerbrowser.com",
  "vote": 1,
  "createdAt": "2018-12-07T02:52:11.947Z"
}

Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "dat://unwalled.garden/vote.json",
  "type": "object",
  "title": "Vote",
  "description": "A vote up or down on some resource.",
  "required": [
    "type",
    "topic",
    "vote",
    "createdAt"
  ],
  "properties": {
    "type": {
      "type": "string",
      "description": "The object's type",
      "const": "unwalled.garden/vote"
    },
    "topic": {
      "type": "string",
      "format": "uri"
    },
    "vote": {
      "type": "number",
      "enum": [-1, 1]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}