Skip to content

Commit

Permalink
Merge pull request #1 from SkynetHQ/improvements-and-additions
Browse files Browse the repository at this point in the history
Improvements and additions
  • Loading branch information
MSevey authored Mar 29, 2021
2 parents 658b31b + 901f4ad commit d3128a7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
6 changes: 3 additions & 3 deletions draft-01/hash.schema.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"$id": "https://skystandards.hns.siasky.net/draft-01/hash.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "A hash of a referenced post",
"title": "Multihash (https://multiformats.io/multihash/) of a referenced post. Only supports sha256 currently.",
"type": "string",
"pattern": "^sha256:[\\da-f]{64}$",
"pattern": "^1220[\\da-f]{64}$",
"examples": [
"sha256:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
"122041dd7b6443542e75701aa98a0c235951a28a0d851b11564d20022ab11d2589a8"
]
}
2 changes: 1 addition & 1 deletion draft-01/post.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"parentHash": {
"$ref": "../draft-01/hash.schema.json",
"description": "sha256sum of the JSON string of the post being reposted or commented on to prevent unexpected edits"
"description": "Multihash of the Canonical JSON (http://wiki.laptop.org/go/Canonical_JSON) string of the post being reposted or commented on to prevent unexpected edits"
},
"isDeleted": {
"type": "boolean",
Expand Down
7 changes: 7 additions & 0 deletions draft-01/postContent.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,13 @@
"type": "integer",
"description": "Unix timestamp (in millisecons) when this post was created/posted",
"minimum": 0
},
"lang": {
"type": "string",
"description": "ISO 639-1 Alpha-2 language code",
"minLength": 2,
"maxLength": 2,
"default": "en"
}
}
}

0 comments on commit d3128a7

Please sign in to comment.