{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/runn/json-schema/runn-custom-field-select-schema.json",
  "title": "CustomFieldSelect",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/runn-custom-fields-api-openapi.yml#/components/schemas/CustomFieldSelect",
  "type": "object",
  "properties": {
    "id": {
      "description": "Unique identifier for the custom field select",
      "type": "integer"
    },
    "name": {
      "description": "Display name for the custom field select",
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "model": {
      "type": "string",
      "enum": [
        "PERSON",
        "PROJECT"
      ],
      "description": "The field type of the custom field"
    },
    "options": {
      "description": "All selectable options",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "description": "Unique identifier for the select option",
            "type": "integer"
          },
          "name": {
            "description": "Display name for the select option",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ]
      }
    },
    "singleSelect": {
      "description": "Whether this select is a single or multi select",
      "type": "boolean"
    },
    "required": {
      "description": "Whether or not the select is a required field",
      "type": "boolean"
    },
    "showInPlanner": {
      "description": "Whether or not the custom field select is shown in the project or person planner in the app UI",
      "type": "boolean"
    },
    "sortOrder": {
      "description": "The sort order of the custom field select",
      "type": "integer"
    },
    "filterableInPlanner": {
      "description": "Whether or not the custom field select is filterable in the project or person planner in the app UI",
      "type": "boolean"
    }
  },
  "required": [
    "id",
    "name",
    "description",
    "model",
    "options",
    "singleSelect",
    "required",
    "showInPlanner",
    "sortOrder",
    "filterableInPlanner"
  ]
}