Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
Add vote.json
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrazee committed Jun 17, 2019
1 parent b7ffe03 commit 92efde8
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions vote.json
@@ -0,0 +1,36 @@
{
"$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"
}
}
}

0 comments on commit 92efde8

Please sign in to comment.