{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/optimizely/main/json-schema/optimizely-schema-field-input-schema.json",
  "title": "SchemaFieldInput",
  "description": "Input for creating a schema field",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optimizely-schema-api-openapi.yml#/components/schemas/SchemaFieldInput",
  "type": "object",
  "required": [
    "name",
    "display_name",
    "type"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Field name"
    },
    "display_name": {
      "type": "string",
      "description": "Human-readable display name"
    },
    "type": {
      "type": "string",
      "description": "Data type of the field",
      "enum": [
        "string",
        "number",
        "boolean",
        "timestamp"
      ]
    },
    "description": {
      "type": "string",
      "description": "Description of the field"
    }
  }
}