{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/twenty/json-schema/twenty-field-metadata-input-schema.json",
  "title": "FieldMetadataInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/twenty-fields-api-openapi.yml#/components/schemas/FieldMetadataInput",
  "type": "object",
  "required": [
    "objectMetadataId",
    "name",
    "label",
    "type"
  ],
  "properties": {
    "objectMetadataId": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "label": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "TEXT",
        "RICH_TEXT",
        "NUMERIC",
        "NUMBER",
        "BOOLEAN",
        "DATE",
        "DATE_TIME",
        "SELECT",
        "MULTI_SELECT",
        "CURRENCY",
        "FULL_NAME",
        "EMAILS",
        "PHONES",
        "LINKS",
        "ADDRESS",
        "RATING",
        "UUID",
        "JSON",
        "ARRAY"
      ]
    },
    "description": {
      "type": "string"
    },
    "icon": {
      "type": "string"
    },
    "isNullable": {
      "type": "boolean"
    },
    "defaultValue": {},
    "options": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "color": {
            "type": "string"
          }
        }
      }
    }
  }
}