{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/threadsnoop-com/json-schema/threadsnoop-com-comment-list-envelope-schema.json",
  "title": "CommentListEnvelope",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/threadsnoop-com-openapi.json#/components/schemas/CommentListEnvelope",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Comment"
      }
    },
    "_threadsnoop": {
      "$ref": "#/$defs/Envelope"
    }
  },
  "$defs": {
    "Comment": {
      "type": "object",
      "description": "Full Reddit comment object, untrimmed unless you pass `fields=`.",
      "properties": {
        "id": {
          "type": "string"
        },
        "body": {
          "type": "string"
        },
        "author": {
          "type": "string"
        },
        "created_utc": {
          "type": "integer"
        },
        "subreddit": {
          "type": "string"
        },
        "link_id": {
          "type": "string",
          "description": "Fullname (t3_...) of the parent post."
        },
        "parent_id": {
          "type": "string",
          "description": "Fullname of the immediate parent (post or comment)."
        },
        "permalink": {
          "type": "string",
          "description": "Relative path on reddit.com. Prepend https://www.reddit.com for a clickable URL."
        }
      },
      "additionalProperties": true
    },
    "Envelope": {
      "type": "object",
      "properties": {
        "cursor": {
          "type": [
            "integer",
            "null"
          ],
          "description": "created_utc of the last row in this page (raw page, pre-filter if q= was used). Pass as `after` (sort=asc) or `before` (sort=desc) to fetch the next page. Null when the page was empty or the endpoint isn't paginated."
        },
        "has_more": {
          "type": "boolean"
        },
        "credits_used": {
          "type": "integer"
        },
        "credits_remaining": {
          "type": "integer"
        }
      },
      "required": [
        "credits_used",
        "credits_remaining"
      ]
    }
  }
}