{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eightfold-ai/json-schema/eightfold-ai-holiday-schema-schema.json",
  "title": "HolidaySchema",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eightfold-ai-holiday-api-openapi.yml#/components/schemas/HolidaySchema",
  "type": "object",
  "properties": {
    "createdAt": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "readOnly": true,
      "description": "Created timestamp for the holiday"
    },
    "updatedBy": {
      "type": [
        "string",
        "null"
      ],
      "description": "User who updated the holiday"
    },
    "isArchived": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "A flag indicating if holiday is archived"
    },
    "holidayDate": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "description": "Date of the holiday"
    },
    "createdBy": {
      "type": [
        "string",
        "null"
      ],
      "description": "User who created the holiday"
    },
    "holidayName": {
      "type": [
        "string",
        "null"
      ],
      "description": "Name of the holiday"
    },
    "archivedAt": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "readOnly": true,
      "description": "Archived timestamp for the holiday"
    },
    "updatedAt": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "readOnly": true,
      "description": "Updated timestamp for the holiday"
    },
    "holidayType": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "public_holiday",
        "optional_holiday"
      ],
      "description": "Type of the holiday"
    },
    "region": {
      "type": [
        "string",
        "null"
      ],
      "description": "Region of the holiday"
    },
    "holidayId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "readOnly": true,
      "description": "Holiday id"
    }
  },
  "required": [
    "holidayDate",
    "holidayType"
  ]
}