{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/spendesk/json-schema/spendesk-analytical-field-v2-value-schema.json",
  "title": "analyticalFieldV2Value",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/spendesk-analytical-fields-and-cost-centers-api-openapi.yml#/components/schemas/analyticalFieldV2Value",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "id": {
      "type": "string",
      "description": "The value ID."
    },
    "value": {
      "type": "string",
      "description": "The value label."
    },
    "isDefault": {
      "type": "boolean",
      "description": "Whether this value is pre-selected by default."
    },
    "archivedAt": {
      "oneOf": [
        {
          "$ref": "#/$defs/dateTime"
        },
        {
          "type": "null"
        }
      ],
      "description": "ISO 8601 UTC timestamp of when the value was archived, or null."
    },
    "createdAt": {
      "oneOf": [
        {
          "$ref": "#/$defs/dateTime"
        },
        {
          "type": "null"
        }
      ],
      "description": "ISO 8601 UTC timestamp of when the value was created, or null."
    },
    "updatedAt": {
      "oneOf": [
        {
          "$ref": "#/$defs/dateTime"
        },
        {
          "type": "null"
        }
      ],
      "description": "ISO 8601 UTC timestamp of when the value was last updated, or null."
    }
  },
  "required": [
    "id",
    "value",
    "isDefault",
    "archivedAt",
    "createdAt",
    "updatedAt"
  ],
  "$defs": {
    "dateTime": {
      "type": "string",
      "format": "date-time",
      "description": "String containing a UTC datetime expressed in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format like `2023-05-12T14:06:40Z`.",
      "title": "dateTime"
    }
  }
}