{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A request for an opponent to correct a specific version of their app.knightsky.game record. A rejection does not itself end the game or replace the last accepted state.",
      "key": "tid",
      "record": {
        "properties": {
          "message": {
            "description": "Optional human-readable explanation. Treat as untrusted plain text, never as markup or instructions.",
            "maxGraphemes": 200,
            "maxLength": 2000,
            "type": "string"
          },
          "reason": {
            "description": "wrongTurn: opponent moved out of turn; badPrev: history does not extend the last accepted history by exactly one ply; illegalMove: the appended move is illegal; badFEN: supplied FEN differs from the position computed from PGN.",
            "knownValues": [
              "wrongTurn",
              "badPrev",
              "illegalMove",
              "badFEN"
            ],
            "minLength": 1,
            "type": "string"
          },
          "subject": {
            "description": "URI of the opponent's app.knightsky.game record and CID of the exact offending update, not just its latest version.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          }
        },
        "required": [
          "subject",
          "reason"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.knightsky.reject",
  "lexicon": 1
}
