{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.html-docs.com/research/html-artifact-examples-pack-schema-2026.json",
  "title": "Open HTML Artifact Examples Pack 2026 manifest",
  "description": "Validation schema for version 2.2 of the Open HTML Artifact Examples Pack 2026 manifest.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "name",
    "version",
    "published_at",
    "updated_at",
    "author",
    "publisher",
    "license",
    "url",
    "bundle_url",
    "bundle_sha256",
    "json_url",
    "markdown_url",
    "schema_url",
    "bibtex_url",
    "citation_file_url",
    "checksum_manifest_url",
    "citation",
    "methodology",
    "examples"
  ],
  "properties": {
    "name": { "const": "Open HTML Artifact Examples Pack 2026" },
    "version": { "const": "2.2" },
    "published_at": { "type": "string", "format": "date" },
    "updated_at": { "const": "2026-10-24" },
    "author": { "type": "string", "minLength": 1 },
    "publisher": { "type": "string", "minLength": 1 },
    "license": { "const": "CC0-1.0" },
    "url": { "const": "https://www.html-docs.com/guides/html-artifact-examples-pack" },
    "bundle_url": { "type": "string", "format": "uri" },
    "bundle_sha256": { "$ref": "#/$defs/sha256" },
    "json_url": { "type": "string", "format": "uri" },
    "markdown_url": { "type": "string", "format": "uri" },
    "schema_url": {
      "const": "https://www.html-docs.com/research/html-artifact-examples-pack-schema-2026.json"
    },
    "bibtex_url": { "type": "string", "format": "uri" },
    "citation_file_url": { "type": "string", "format": "uri" },
    "checksum_manifest_url": { "type": "string", "format": "uri" },
    "citation": { "$ref": "#/$defs/citation" },
    "methodology": { "type": "string", "minLength": 1 },
    "examples": {
      "type": "array",
      "minItems": 5,
      "maxItems": 5,
      "uniqueItems": true,
      "items": { "$ref": "#/$defs/example" },
      "allOf": [
        {
          "contains": { "type": "object", "properties": { "id": { "const": "roadmap" } }, "required": ["id"] },
          "minContains": 1,
          "maxContains": 1
        },
        {
          "contains": { "type": "object", "properties": { "id": { "const": "incident-retrospective" } }, "required": ["id"] },
          "minContains": 1,
          "maxContains": 1
        },
        {
          "contains": { "type": "object", "properties": { "id": { "const": "api-integration-guide" } }, "required": ["id"] },
          "minContains": 1,
          "maxContains": 1
        },
        {
          "contains": { "type": "object", "properties": { "id": { "const": "research-comparison" } }, "required": ["id"] },
          "minContains": 1,
          "maxContains": 1
        },
        {
          "contains": { "type": "object", "properties": { "id": { "const": "customer-onboarding" } }, "required": ["id"] },
          "minContains": 1,
          "maxContains": 1
        }
      ]
    }
  },
  "$defs": {
    "sha256": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "citation": {
      "type": "object",
      "additionalProperties": false,
      "required": ["plain", "markdown", "html"],
      "properties": {
        "plain": { "type": "string", "minLength": 1 },
        "markdown": { "type": "string", "minLength": 1 },
        "html": { "type": "string", "minLength": 1 }
      }
    },
    "example": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "title",
        "source_url",
        "source_sha256",
        "revised_url",
        "revised_sha256",
        "review_prompt",
        "revision"
      ],
      "properties": {
        "id": {
          "enum": [
            "roadmap",
            "incident-retrospective",
            "api-integration-guide",
            "research-comparison",
            "customer-onboarding"
          ]
        },
        "title": { "type": "string", "minLength": 1 },
        "source_url": { "type": "string", "format": "uri" },
        "source_sha256": { "$ref": "#/$defs/sha256" },
        "revised_url": { "type": "string", "format": "uri" },
        "revised_sha256": { "$ref": "#/$defs/sha256" },
        "review_prompt": { "type": "string", "minLength": 1 },
        "revision": { "type": "string", "minLength": 1 }
      }
    }
  }
}
