at.postgame.love

A game the user loved. Lists may also be loved in the future, but only games are supported today. The record key is deterministic so a subject can only be loved once: 'game-{igdbId}' for games, 'list-{rkey}' (the rkey of the at.postgame.list record) for lists

Repository @postgame.at did:plc:crwol3wvv2w2lvvognhvd5cm namespace authority
Details · record, key any
Kindrecord
Record keyany
Authoritypostgame.at
Indexed
cid bafyreihzhlgs464x5z2m73k2wlc6auqktkp4yjap24xwgn4k2xitc3edf4

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "game": {
      "description": "A loved game",
      "properties": {
        "coverUrl": {
          "format": "uri",
          "type": "string"
        },
        "igdbId": {
          "type": "integer"
        },
        "title": {
          "maxLength": 256,
          "type": "string"
        }
      },
      "required": [
        "igdbId",
        "title"
      ],
      "type": "object"
    },
    "list": {
      "description": "A loved list",
      "properties": {
        "name": {
          "maxLength": 256,
          "type": "string"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "name"
      ],
      "type": "object"
    },
    "main": {
      "description": "A game the user loved. Lists may also be loved in the future, but only games are supported today. The record key is deterministic so a subject can only be loved once: 'game-{igdbId}' for games, 'list-{rkey}' (the rkey of the at.postgame.list record) for lists",
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "subject": {
            "refs": [
              "#game",
              "#list"
            ],
            "type": "union"
          }
        },
        "required": [
          "subject",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "at.postgame.love",
  "lexicon": 1
}