{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A submission and its discussion.",
      "errors": [
        {
          "description": "No submission at that URI, or it has been deleted.",
          "name": "NotFound"
        },
        {
          "description": "The URI is not an AT-URI in one of this board's collections.",
          "name": "InvalidRequest"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "thread": {
              "description": "The submission and its replies.",
              "ref": "pub.oysters.defs#threadViewPost",
              "type": "ref"
            }
          },
          "required": [
            "thread"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "depth": {
            "default": 12,
            "description": "How many levels of replies to include. Beyond this, a comment's replies come back empty.",
            "maximum": 12,
            "minimum": 0,
            "type": "integer"
          },
          "uri": {
            "description": "AT-URI of the submission.",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "uri"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "pub.oysters.getPostThread",
  "lexicon": 1
}
