com.professorbutts.sports.badge

Recommended key: the award's rkey, so a fan has one badge per award.

Details · record, key any
Kindrecord
Record keyany
Authoritysports.professorbutts.com
Commit rev3n2tlipl6422y
Indexed
cid bafyreidv2z5vrqcasozjuvee6ywbparockxkpmktf3m3uairc7ghsubgti

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Recommended key: the award's rkey, so a fan has one badge per award.",
      "key": "any",
      "record": {
        "properties": {
          "award": {
            "description": "The com.professorbutts.sports.award record. The CID pins the version the fan accepted; readers use the current version for status.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "pinned": {
            "description": "Show among the fan's featured badges.",
            "type": "boolean"
          }
        },
        "required": [
          "award",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "A fan's choice to show an award on their profile. Lives in the fan's own repo and points at the award in the issuer's repo. Readers verify it: the award must exist in the contest publisher's repo, its subject must be this repo's DID, and it must not be revoked. Copying a badge to another repo fails that check.",
  "id": "com.professorbutts.sports.badge",
  "lexicon": 1
}