{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/artifactshare-com/json-schema/artifactshare-com-artifact-read-response-schema.json",
  "title": "ArtifactReadResponse",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/artifactshare-com-openapi.json#/components/schemas/ArtifactReadResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1
    },
    "share_url": {
      "type": "string",
      "format": "uri"
    },
    "version_id": {
      "type": "string",
      "minLength": 1
    },
    "format": {
      "enum": [
        "html",
        "markdown"
      ]
    },
    "content": {
      "type": "string"
    },
    "size_bytes": {
      "type": "number",
      "minimum": 0
    },
    "truncated": {
      "type": "boolean"
    },
    "next_offset": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0
    },
    "link_expires_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "project_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "versions": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "comments": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "versions_has_more": {
      "type": "boolean"
    },
    "comments_has_more": {
      "type": "boolean"
    }
  },
  "required": [
    "id",
    "share_url",
    "version_id",
    "format",
    "content",
    "size_bytes",
    "truncated",
    "next_offset"
  ]
}