{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fareeqy-com/json-schema/fareeqy-com-comment-attachment-envelope-schema.json",
  "title": "CommentAttachmentEnvelope",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fareeqy-com-comments-api-openapi.yml#/components/schemas/CommentAttachmentEnvelope",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/CommentAttachment"
    }
  },
  "$defs": {
    "CommentAttachment": {
      "type": "object",
      "description": "The text of a file attached inside a comment.",
      "properties": {
        "id": {
          "type": "integer",
          "description": "The attachment's numeric id, the handle the comment attachment endpoint takes."
        },
        "name": {
          "type": "string",
          "description": "The file name. Not unique within one comment."
        },
        "content_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "byte_size": {
          "type": [
            "integer",
            "null"
          ]
        },
        "comment_id": {
          "type": "integer",
          "description": "The comment the file is attached to."
        },
        "comment_url": {
          "type": [
            "string",
            "null"
          ],
          "description": "The page the comment is read on."
        },
        "content": {
          "type": "string",
          "description": "The file's text (UTF-8; invalid bytes are replaced)."
        }
      }
    }
  }
}