{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/defianceinternational-io/json-schema/defianceinternational-io-get-legal-archive-document-200-schema.json",
  "title": "getLegalArchiveDocument.200",
  "description": "One archived legal document version with its exact archived text.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/defianceinternational-io-platform-api-openapi.yml#/components/schemas/getLegalArchiveDocument.200",
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "enum": [
        "terms",
        "shipping-policy"
      ],
      "description": "The archived document kind: the Terms of Sale and Platform Use, or the Shipping and Order Exceptions Policy and its predecessor policy text."
    },
    "documentId": {
      "type": "string",
      "pattern": "^[0-9a-f]{16}$",
      "description": "The opaque document id: the first 16 hex digits of the sha256 of the exact archived HTML."
    },
    "title": {
      "type": "string",
      "description": "The archived document title."
    },
    "html": {
      "type": "string",
      "description": "The exact archived document text, HTML."
    },
    "sha256": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$",
      "description": "The sha256 of the exact archived HTML."
    },
    "current": {
      "type": "boolean",
      "description": "Whether this document is the document of the current legal release."
    },
    "researchUseOnly": {
      "type": "string",
      "description": "The boundary statement, stated once at the top level.",
      "pattern": "^Research use only\\. Not for human consumption\\.$"
    }
  },
  "required": [
    "kind",
    "documentId",
    "title",
    "html",
    "sha256",
    "current",
    "researchUseOnly"
  ],
  "additionalProperties": false
}