{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "label": {
      "description": "Override the field label",
      "examples": [
        "My label"
      ],
      "type": "string",
      "markdownDescription": "Override the field label\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/select)"
    },
    "hideLabel": {
      "description": "Hide the field label",
      "type": "boolean",
      "markdownDescription": "Hide the field label\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/select)"
    },
    "placeholder": {
      "description": "Placeholder text shown inside the input when empty",
      "examples": [
        "Search..."
      ],
      "type": "string",
      "markdownDescription": "Placeholder text shown inside the input when empty\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/select)"
    },
    "readonly": {
      "description": "Render the field in read-only mode",
      "type": "boolean",
      "markdownDescription": "Render the field in read-only mode\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/select)"
    },
    "disabled": {
      "description": "Always render the input disabled",
      "type": "boolean",
      "markdownDescription": "Always render the input disabled\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/select)"
    },
    "errorMessage": {
      "description": "Replace the validation error text shown under the input",
      "examples": [
        "Please fill this in"
      ],
      "type": "string",
      "markdownDescription": "Replace the validation error text shown under the input\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/select)"
    },
    "disabledWhen": {
      "description": "Disable the input when the condition matches another field",
      "examples": [
        {
          "field": "id",
          "exists": true
        }
      ],
      "type": "object",
      "properties": {
        "field": {
          "type": "string",
          "description": "The other column id whose value is evaluated for the condition.",
          "markdownDescription": "The other column id whose value is evaluated for the condition.\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/select)"
        },
        "eq": {
          "description": "Show/hide/disable when the field value equals this value.",
          "markdownDescription": "Show/hide/disable when the field value equals this value.\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/select)"
        },
        "neq": {
          "description": "Show/hide/disable when the field value does NOT equal this value.",
          "markdownDescription": "Show/hide/disable when the field value does NOT equal this value.\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/select)"
        },
        "exists": {
          "description": "When true, show/hide/disable when the field has a non-empty value.",
          "type": "boolean",
          "markdownDescription": "When true, show/hide/disable when the field has a non-empty value.\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/select)"
        },
        "notExists": {
          "description": "When true, show/hide/disable when the field has no value.",
          "type": "boolean",
          "markdownDescription": "When true, show/hide/disable when the field has no value.\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/select)"
        }
      },
      "required": [
        "field"
      ],
      "markdownDescription": "Disable the input when the condition matches another field\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/select)"
    },
    "colspan": {
      "description": "Grid column span (1–12)",
      "examples": [
        6,
        12
      ],
      "type": "number",
      "markdownDescription": "Grid column span (1–12)\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/select)"
    },
    "width": {
      "description": "Named width (xs, sm, md, lg, xl, full) or any CSS value",
      "examples": [
        "md",
        "240px"
      ],
      "type": "string",
      "markdownDescription": "Named width (xs, sm, md, lg, xl, full) or any CSS value\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/select)"
    },
    "styles": {
      "description": "Inline CSS style object applied to the field wrapper",
      "examples": [
        {
          "color": "red"
        }
      ],
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {},
      "markdownDescription": "Inline CSS style object applied to the field wrapper\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/select)"
    },
    "customRender": {
      "description": "Name of a globally registered Vue component to render instead of the default input",
      "examples": [
        "MyCustomInput"
      ],
      "type": "string",
      "markdownDescription": "Name of a globally registered Vue component to render instead of the default input\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/select)"
    },
    "options": {
      "description": "Inline array of option items",
      "examples": [
        [
          {
            "label": "Active",
            "value": "active"
          }
        ]
      ],
      "type": "array",
      "items": {},
      "markdownDescription": "Inline array of option items\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/select)"
    },
    "values": {
      "description": "Local option list. Entries are { value, label } objects, or plain values (strings/numbers/booleans) — when the column also references a shared `enum`, plain values are resolved against the enum registry to restrict the shared list for this screen, with labels taken from the enum. Rows whose stored value is outside this list cannot be edited from this screen.",
      "examples": [
        [
          {
            "value": "internal",
            "label": "Internal"
          },
          {
            "value": "wikidata",
            "label": "Wikidata"
          }
        ],
        [
          "internal",
          "wikidata"
        ]
      ],
      "type": "array",
      "items": {},
      "markdownDescription": "Local option list. Entries are { value, label } objects, or plain values (strings/numbers/booleans) — when the column also references a shared `enum`, plain values are resolved against the enum registry to restrict the shared list for this screen, with labels taken from the enum. Rows whose stored value is outside this list cannot be edited from this screen.\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/select)"
    },
    "displayValues": {
      "description": "Full option list used for label resolution when `values` restricts a shared `enum`. Written by the loader at load time (from the enum registry) — not meant to be set by hand.",
      "examples": [
        [
          {
            "value": "internal",
            "label": "Internal"
          }
        ]
      ],
      "type": "array",
      "items": {},
      "markdownDescription": "Full option list used for label resolution when `values` restricts a shared `enum`. Written by the loader at load time (from the enum registry) — not meant to be set by hand.\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/select)"
    },
    "resource": {
      "description": "Relative path to a resource.json used to populate the options",
      "examples": [
        "./status.resource.json"
      ],
      "type": "string",
      "markdownDescription": "Relative path to a resource.json used to populate the options\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/select)"
    },
    "labelKey": {
      "description": "Object key used as the display label",
      "examples": [
        "label",
        "name"
      ],
      "type": "string",
      "markdownDescription": "Object key used as the display label\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/select)"
    },
    "valueKey": {
      "description": "Object key used as the stored value",
      "examples": [
        "value",
        "id"
      ],
      "type": "string",
      "markdownDescription": "Object key used as the stored value\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/select)"
    },
    "uri": {
      "description": "Remote endpoint URL for fetching options",
      "examples": [
        "/api/statuses"
      ],
      "type": "string",
      "markdownDescription": "Remote endpoint URL for fetching options\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/select)"
    },
    "dataField": {
      "description": "Field in the API response containing the data array",
      "examples": [
        "data",
        "results"
      ],
      "type": "string",
      "markdownDescription": "Field in the API response containing the data array\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/select)"
    },
    "clearable": {
      "description": "Show a clear button to remove the selected value",
      "type": "boolean",
      "markdownDescription": "Show a clear button to remove the selected value\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/select)"
    },
    "storeValue": {
      "description": "Store option[valueKey] instead of the whole option object",
      "type": "boolean",
      "markdownDescription": "Store option[valueKey] instead of the whole option object\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/select)"
    }
  },
  "additionalProperties": {},
  "title": "Crouton fieldInput options: select",
  "description": "Options for the select dropdown and multi-select (multiSelect alias)",
  "$id": "https://ghentcdh.github.io/crouton/schema/v1/select.field-input.schema.json",
  "markdownDescription": "Options for the select dropdown and multi-select (multiSelect alias)\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/select)"
}
