{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cayra-io/json-schema/cayra-io-agreement-response-schema.json",
  "title": "AgreementResponse",
  "description": "Agreement template 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/AgreementResponse",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "code": {
      "type": "string",
      "title": "Code"
    },
    "name": {
      "type": "string",
      "title": "Name"
    },
    "category": {
      "$ref": "#/$defs/AgreementCategoryEnum"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "code",
    "name",
    "category",
    "description",
    "created_at"
  ],
  "$defs": {
    "AgreementCategoryEnum": {
      "type": "string",
      "enum": [
        "kvkk",
        "prepaid_terms",
        "privacy",
        "msa",
        "custom"
      ],
      "title": "AgreementCategoryEnum"
    }
  }
}