{
  "type": "object",
  "properties": {
    "name": {
      "description": "Name of the issue field.",
      "type": "string"
    },
    "description": {
      "description": "Description of the issue field.",
      "type": [
        "string",
        "null"
      ]
    },
    "data_type": {
      "description": "The data type of the issue field.",
      "type": "string",
      "enum": [
        "text",
        "date",
        "single_select",
        "number"
      ]
    },
    "visibility": {
      "description": "The visibility of the issue field. Can be `organization_members_only` (visible only within the organization) or `all` (visible to all users who can see issues). Only used when the visibility settings feature is enabled. Defaults to `organization_members_only`.",
      "type": "string",
      "enum": [
        "organization_members_only",
        "all"
      ]
    },
    "options": {
      "description": "Options for single select fields. Required when data_type is 'single_select'.",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "description": "Name of the option.",
            "type": "string"
          },
          "description": {
            "description": "Description of the option.",
            "type": [
              "string",
              "null"
            ]
          },
          "color": {
            "description": "Color for the option.",
            "type": "string",
            "enum": [
              "gray",
              "blue",
              "green",
              "yellow",
              "orange",
              "red",
              "pink",
              "purple"
            ]
          },
          "priority": {
            "description": "Priority of the option for ordering.",
            "type": "integer"
          }
        },
        "required": [
          "name",
          "color",
          "priority"
        ]
      }
    }
  },
  "required": [
    "name",
    "data_type"
  ],
  "$schema": "https://json-schema.org/draft/2019-09/schema"
}