{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cayra-io/json-schema/cayra-io-agreement-version-response-schema.json",
  "title": "AgreementVersionResponse",
  "description": "Version representation",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cayra-io-agreements-api-openapi.yml#/components/schemas/AgreementVersionResponse",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "agreement_id": {
      "type": "string",
      "format": "uuid",
      "title": "Agreement Id"
    },
    "version_label": {
      "type": "string",
      "title": "Version Label"
    },
    "effective_from": {
      "type": "string",
      "format": "date-time",
      "title": "Effective From"
    },
    "document_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Document Url"
    },
    "document_hash": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Document Hash"
    },
    "content": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Content"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "agreement_id",
    "version_label",
    "effective_from",
    "document_url",
    "document_hash",
    "content",
    "created_at"
  ]
}