{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "https://raw.githubusercontent.com/WordPress/secure-custom-fields/trunk/schemas/field.schema.json",
    "title": "SCF Field",
    "description": "Schema for Secure Custom Fields field definitions. Auto-generated from field-fragments/.",
    "oneOf": [
        {
            "description": "Single field object with required parent",
            "$ref": "#/definitions/field",
            "required": [
                "key",
                "label",
                "name",
                "type",
                "parent"
            ]
        },
        {
            "description": "Array of field objects with required parent",
            "type": "array",
            "items": {
                "$ref": "#/definitions/field",
                "required": [
                    "key",
                    "label",
                    "name",
                    "type",
                    "parent"
                ]
            },
            "minItems": 1
        }
    ],
    "definitions": {
        "field": {
            "oneOf": [
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "color_picker"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "default_value": {
                            "$ref": "#/definitions/default_value"
                        },
                        "enable_opacity": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Enable alpha/opacity selector for RGBA colors"
                        },
                        "custom_palette_source": {
                            "type": "string",
                            "default": "",
                            "description": "Source for custom color palette (empty for default)"
                        },
                        "palette_colors": {
                            "type": "string",
                            "default": "",
                            "description": "Custom palette colors as comma-separated hex values"
                        },
                        "show_color_wheel": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": true,
                            "description": "Display the color wheel picker interface"
                        },
                        "return_format": {
                            "type": "string",
                            "enum": [
                                "string",
                                "array"
                            ],
                            "default": "string",
                            "description": "Value returned (hex string or RGBA array)"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "date_picker"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "display_format": {
                            "type": "string",
                            "default": "d/m/Y",
                            "description": "Date format shown to user in field UI"
                        },
                        "return_format": {
                            "type": "string",
                            "default": "d/m/Y",
                            "description": "Date format returned by get_field()"
                        },
                        "first_day": {
                            "$ref": "#/definitions/first_day"
                        },
                        "default_to_current_date": {
                            "$ref": "#/definitions/default_to_current_date"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "date_time_picker"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "display_format": {
                            "type": "string",
                            "default": "d/m/Y g:i a",
                            "description": "Date/time format shown to user in field UI"
                        },
                        "return_format": {
                            "type": "string",
                            "default": "d/m/Y g:i a",
                            "description": "Date/time format returned by get_field()"
                        },
                        "first_day": {
                            "$ref": "#/definitions/first_day"
                        },
                        "default_to_current_date": {
                            "$ref": "#/definitions/default_to_current_date"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "google_map"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "height": {
                            "type": "string",
                            "default": "",
                            "description": "Map height in pixels (empty uses default 400)"
                        },
                        "center_lat": {
                            "type": "string",
                            "default": "",
                            "description": "Initial map center latitude (empty uses default)"
                        },
                        "center_lng": {
                            "type": "string",
                            "default": "",
                            "description": "Initial map center longitude (empty uses default)"
                        },
                        "zoom": {
                            "type": "string",
                            "default": "",
                            "description": "Initial map zoom level (empty uses default 14)"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "icon_picker"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "library": {
                            "type": "string",
                            "default": "all",
                            "description": "Icon library source (all or specific library)"
                        },
                        "tabs": {
                            "type": "array",
                            "default": [
                                "dashicons",
                                "media_library",
                                "url"
                            ],
                            "description": "Available tabs for icon selection"
                        },
                        "return_format": {
                            "type": "string",
                            "default": "string",
                            "description": "Value returned (string or structured data)"
                        },
                        "default_value": {
                            "type": "object",
                            "default": [],
                            "description": "Default icon value with type and value properties",
                            "properties": {
                                "type": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "Icon type (dashicons, media_library, url)"
                                },
                                "value": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "description": "Icon value (icon class, attachment ID, or URL)"
                                }
                            }
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "time_picker"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "display_format": {
                            "type": "string",
                            "default": "g:i a",
                            "description": "Time format shown to user in field UI"
                        },
                        "return_format": {
                            "type": "string",
                            "default": "g:i a",
                            "description": "Time format returned by get_field()"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "email"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "default_value": {
                            "$ref": "#/definitions/default_value"
                        },
                        "placeholder": {
                            "$ref": "#/definitions/placeholder"
                        },
                        "prepend": {
                            "$ref": "#/definitions/prepend"
                        },
                        "append": {
                            "$ref": "#/definitions/append"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "number"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "default_value": {
                            "$ref": "#/definitions/default_value_numeric"
                        },
                        "min": {
                            "type": [
                                "integer",
                                "number",
                                "string"
                            ],
                            "default": "",
                            "description": "Minimum value (empty string for unlimited)"
                        },
                        "max": {
                            "type": [
                                "integer",
                                "number",
                                "string"
                            ],
                            "default": "",
                            "description": "Maximum value (empty string for unlimited)"
                        },
                        "step": {
                            "type": [
                                "integer",
                                "number",
                                "string"
                            ],
                            "default": "",
                            "description": "Step increment (empty string for default, 'any' for no restriction)"
                        },
                        "placeholder": {
                            "$ref": "#/definitions/placeholder"
                        },
                        "prepend": {
                            "$ref": "#/definitions/prepend"
                        },
                        "append": {
                            "$ref": "#/definitions/append"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "password"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "placeholder": {
                            "$ref": "#/definitions/placeholder"
                        },
                        "prepend": {
                            "$ref": "#/definitions/prepend"
                        },
                        "append": {
                            "$ref": "#/definitions/append"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "range"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "default_value": {
                            "$ref": "#/definitions/default_value_numeric"
                        },
                        "min": {
                            "type": [
                                "integer",
                                "number",
                                "string"
                            ],
                            "default": "",
                            "description": "Minimum value (empty string for unlimited)"
                        },
                        "max": {
                            "type": [
                                "integer",
                                "number",
                                "string"
                            ],
                            "default": "",
                            "description": "Maximum value (empty string for unlimited)"
                        },
                        "step": {
                            "type": [
                                "integer",
                                "number",
                                "string"
                            ],
                            "default": "",
                            "description": "Step increment (empty string for default, 'any' for no restriction)"
                        },
                        "placeholder": {
                            "$ref": "#/definitions/placeholder"
                        },
                        "prepend": {
                            "$ref": "#/definitions/prepend"
                        },
                        "append": {
                            "$ref": "#/definitions/append"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "text"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "default_value": {
                            "$ref": "#/definitions/default_value"
                        },
                        "maxlength": {
                            "$ref": "#/definitions/maxlength"
                        },
                        "placeholder": {
                            "$ref": "#/definitions/placeholder"
                        },
                        "prepend": {
                            "$ref": "#/definitions/prepend"
                        },
                        "append": {
                            "$ref": "#/definitions/append"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "textarea"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "default_value": {
                            "$ref": "#/definitions/default_value"
                        },
                        "maxlength": {
                            "$ref": "#/definitions/maxlength"
                        },
                        "rows": {
                            "$ref": "#/definitions/rows"
                        },
                        "placeholder": {
                            "$ref": "#/definitions/placeholder"
                        },
                        "new_lines": {
                            "$ref": "#/definitions/new_lines"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "url"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "default_value": {
                            "$ref": "#/definitions/default_value"
                        },
                        "placeholder": {
                            "$ref": "#/definitions/placeholder"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "button_group"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "choices": {
                            "$ref": "#/definitions/choices"
                        },
                        "default_value": {
                            "$ref": "#/definitions/default_value"
                        },
                        "return_format": {
                            "$ref": "#/definitions/return_format_choice"
                        },
                        "layout": {
                            "type": "string",
                            "enum": [
                                "vertical",
                                "horizontal"
                            ],
                            "default": "horizontal",
                            "description": "Layout direction for button choices"
                        },
                        "allow_null": {
                            "$ref": "#/definitions/allow_null"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "checkbox"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "choices": {
                            "$ref": "#/definitions/choices"
                        },
                        "default_value": {
                            "$ref": "#/definitions/default_value_multi"
                        },
                        "return_format": {
                            "$ref": "#/definitions/return_format_choice"
                        },
                        "layout": {
                            "$ref": "#/definitions/layout_choice"
                        },
                        "toggle": {
                            "type": "integer",
                            "default": 0,
                            "description": "Show a toggle all checkbox (1 for yes, 0 for no)"
                        },
                        "allow_custom": {
                            "type": "integer",
                            "default": 0,
                            "description": "Allow custom values to be added (1 for yes, 0 for no)"
                        },
                        "save_custom": {
                            "type": "integer",
                            "default": 0,
                            "description": "Save custom values to the field choices (1 for yes, 0 for no)"
                        },
                        "custom_choice_button_text": {
                            "type": "string",
                            "default": "Add new choice",
                            "description": "Text for the add custom choice button (translatable)"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "nav_menu"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "allow_null": {
                            "$ref": "#/definitions/allow_null"
                        },
                        "save_format": {
                            "type": "string",
                            "enum": [
                                "id",
                                "object",
                                "menu"
                            ],
                            "default": "id",
                            "description": "Return format (ID, Nav Menu object, or rendered HTML)"
                        },
                        "container": {
                            "type": "string",
                            "default": "div",
                            "description": "HTML container element for menu when returning HTML"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "radio"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "choices": {
                            "$ref": "#/definitions/choices"
                        },
                        "default_value": {
                            "$ref": "#/definitions/default_value"
                        },
                        "return_format": {
                            "$ref": "#/definitions/return_format_choice"
                        },
                        "layout": {
                            "$ref": "#/definitions/layout_choice"
                        },
                        "allow_null": {
                            "$ref": "#/definitions/allow_null"
                        },
                        "other_choice": {
                            "type": "integer",
                            "default": 0,
                            "description": "Add an other choice with text input (1 for yes, 0 for no)"
                        },
                        "save_other_choice": {
                            "type": "integer",
                            "default": 0,
                            "description": "Save other choice values to the field choices (1 for yes, 0 for no)"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "select"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "choices": {
                            "$ref": "#/definitions/choices"
                        },
                        "default_value": {
                            "$ref": "#/definitions/default_value_multi"
                        },
                        "return_format": {
                            "$ref": "#/definitions/return_format_choice"
                        },
                        "multiple": {
                            "$ref": "#/definitions/multiple"
                        },
                        "allow_null": {
                            "$ref": "#/definitions/allow_null"
                        },
                        "placeholder": {
                            "$ref": "#/definitions/placeholder"
                        },
                        "ui": {
                            "type": "integer",
                            "default": 0,
                            "description": "Use enhanced Select2 UI (1 for yes, 0 for no)"
                        },
                        "ajax": {
                            "type": "integer",
                            "default": 0,
                            "description": "Use AJAX to lazy load choices (1 for yes, 0 for no)"
                        },
                        "create_options": {
                            "type": "integer",
                            "default": 0,
                            "description": "Allow new options to be created while editing (1 for yes, 0 for no)"
                        },
                        "save_options": {
                            "type": "integer",
                            "default": 0,
                            "description": "Save newly created options to the field choices (1 for yes, 0 for no)"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "true_false"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "default_value": {
                            "type": "integer",
                            "default": 0,
                            "description": "Default state (0 for off, 1 for on)"
                        },
                        "message": {
                            "type": "string",
                            "default": "",
                            "description": "Text displayed alongside the checkbox"
                        },
                        "ui": {
                            "type": "integer",
                            "default": 0,
                            "description": "Use stylized toggle UI (1 for yes, 0 for no)"
                        },
                        "ui_on_text": {
                            "type": "string",
                            "default": "",
                            "description": "Text shown when toggle is on (empty for default 'Yes')"
                        },
                        "ui_off_text": {
                            "type": "string",
                            "default": "",
                            "description": "Text shown when toggle is off (empty for default 'No')"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "file"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "return_format": {
                            "$ref": "#/definitions/return_format_media"
                        },
                        "library": {
                            "$ref": "#/definitions/library"
                        },
                        "min_size": {
                            "$ref": "#/definitions/min_size"
                        },
                        "max_size": {
                            "$ref": "#/definitions/max_size"
                        },
                        "mime_types": {
                            "$ref": "#/definitions/mime_types"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "gallery"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "return_format": {
                            "$ref": "#/definitions/return_format_media"
                        },
                        "preview_size": {
                            "$ref": "#/definitions/preview_size"
                        },
                        "library": {
                            "$ref": "#/definitions/library"
                        },
                        "min_width": {
                            "$ref": "#/definitions/min_width"
                        },
                        "min_height": {
                            "$ref": "#/definitions/min_height"
                        },
                        "min_size": {
                            "$ref": "#/definitions/min_size"
                        },
                        "max_width": {
                            "$ref": "#/definitions/max_width"
                        },
                        "max_height": {
                            "$ref": "#/definitions/max_height"
                        },
                        "max_size": {
                            "$ref": "#/definitions/max_size"
                        },
                        "mime_types": {
                            "$ref": "#/definitions/mime_types"
                        },
                        "min": {
                            "$ref": "#/definitions/min"
                        },
                        "max": {
                            "$ref": "#/definitions/max"
                        },
                        "insert": {
                            "type": "string",
                            "enum": [
                                "append",
                                "prepend"
                            ],
                            "default": "append",
                            "description": "Where to insert new images (append or prepend)"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "image"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "return_format": {
                            "$ref": "#/definitions/return_format_media"
                        },
                        "preview_size": {
                            "$ref": "#/definitions/preview_size"
                        },
                        "library": {
                            "$ref": "#/definitions/library"
                        },
                        "min_width": {
                            "$ref": "#/definitions/min_width"
                        },
                        "min_height": {
                            "$ref": "#/definitions/min_height"
                        },
                        "min_size": {
                            "$ref": "#/definitions/min_size"
                        },
                        "max_width": {
                            "$ref": "#/definitions/max_width"
                        },
                        "max_height": {
                            "$ref": "#/definitions/max_height"
                        },
                        "max_size": {
                            "$ref": "#/definitions/max_size"
                        },
                        "mime_types": {
                            "$ref": "#/definitions/mime_types"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "oembed"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "width": {
                            "type": "string",
                            "default": "",
                            "description": "Maximum width of embedded content in pixels (empty for default)"
                        },
                        "height": {
                            "type": "string",
                            "default": "",
                            "description": "Maximum height of embedded content in pixels (empty for default)"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "wysiwyg"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "default_value": {
                            "$ref": "#/definitions/default_value"
                        },
                        "tabs": {
                            "type": "string",
                            "enum": [
                                "all",
                                "visual",
                                "text"
                            ],
                            "default": "all",
                            "description": "Which editor tabs to show (all, visual only, or text only)"
                        },
                        "toolbar": {
                            "type": "string",
                            "default": "full",
                            "description": "Toolbar configuration (full or basic)"
                        },
                        "media_upload": {
                            "type": "integer",
                            "default": 1,
                            "description": "Show media upload button (1 for yes, 0 for no)"
                        },
                        "delay": {
                            "type": "integer",
                            "default": 0,
                            "description": "Delay TinyMCE initialization until field is clicked (1 for yes, 0 for no)"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "accordion"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "open": {
                            "type": "integer",
                            "default": 0,
                            "description": "Display this accordion as open on page load"
                        },
                        "multi_expand": {
                            "type": "integer",
                            "default": 0,
                            "description": "Allow this accordion to open without closing others"
                        },
                        "endpoint": {
                            "$ref": "#/definitions/endpoint"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "clone"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "clone": {
                            "type": [
                                "string",
                                "array"
                            ],
                            "default": "",
                            "description": "Field keys or group keys to clone"
                        },
                        "prefix_label": {
                            "type": "integer",
                            "default": 0,
                            "description": "Prefix cloned field labels with this field's label"
                        },
                        "prefix_name": {
                            "type": "integer",
                            "default": 0,
                            "description": "Prefix cloned field names with this field's name"
                        },
                        "display": {
                            "type": "string",
                            "enum": [
                                "group",
                                "seamless"
                            ],
                            "default": "seamless",
                            "description": "Display style for cloned fields"
                        },
                        "layout": {
                            "$ref": "#/definitions/layout_display",
                            "default": "block"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "flexible_content"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "layouts": {
                            "type": "array",
                            "default": [],
                            "description": "Available layout configurations"
                        },
                        "min": {
                            "type": [
                                "integer",
                                "string"
                            ],
                            "default": "",
                            "description": "Minimum number of layouts (empty for no limit)"
                        },
                        "max": {
                            "type": [
                                "integer",
                                "string"
                            ],
                            "default": "",
                            "description": "Maximum number of layouts (empty for no limit)"
                        },
                        "button_label": {
                            "type": "string",
                            "default": "Add Row",
                            "description": "Text label for the add row button"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "group"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "sub_fields": {
                            "$ref": "#/definitions/sub_fields"
                        },
                        "layout": {
                            "$ref": "#/definitions/layout_display",
                            "default": "block"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "message"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "message": {
                            "type": "string",
                            "default": "",
                            "description": "Message content to display"
                        },
                        "esc_html": {
                            "type": "integer",
                            "default": 0,
                            "description": "Display HTML as visible text instead of rendering"
                        },
                        "new_lines": {
                            "type": "string",
                            "enum": [
                                "wpautop",
                                "br",
                                ""
                            ],
                            "default": "wpautop",
                            "description": "Controls how new lines are rendered"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "output"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "html": {
                            "type": "boolean",
                            "default": false,
                            "description": "Whether to output raw HTML"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "repeater"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "sub_fields": {
                            "$ref": "#/definitions/sub_fields"
                        },
                        "min": {
                            "$ref": "#/definitions/min"
                        },
                        "max": {
                            "$ref": "#/definitions/max"
                        },
                        "layout": {
                            "$ref": "#/definitions/layout_display",
                            "default": "table"
                        },
                        "button_label": {
                            "$ref": "#/definitions/button_label"
                        },
                        "pagination": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": 0,
                            "description": "Enable pagination for repeaters with many rows"
                        },
                        "rows_per_page": {
                            "type": "integer",
                            "default": 20,
                            "description": "Number of rows displayed per page when pagination is enabled"
                        },
                        "collapsed": {
                            "type": "string",
                            "default": "",
                            "description": "Field key to use as collapsed row title"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "separator"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "tab"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "placement": {
                            "type": "string",
                            "enum": [
                                "top",
                                "left"
                            ],
                            "default": "top",
                            "description": "Tab placement position"
                        },
                        "endpoint": {
                            "$ref": "#/definitions/endpoint"
                        },
                        "selected": {
                            "type": "integer",
                            "default": 0,
                            "description": "Whether this tab is selected by default"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "link"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "return_format": {
                            "type": "string",
                            "enum": [
                                "array",
                                "url"
                            ],
                            "default": "array",
                            "description": "Value returned (array with url/title/target or just URL string)"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "page_link"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "post_type": {
                            "$ref": "#/definitions/post_type"
                        },
                        "taxonomy": {
                            "$ref": "#/definitions/taxonomy_filter"
                        },
                        "allow_null": {
                            "$ref": "#/definitions/allow_null"
                        },
                        "multiple": {
                            "$ref": "#/definitions/multiple"
                        },
                        "allow_archives": {
                            "type": "integer",
                            "default": 1,
                            "description": "Allow archive URLs to be selected (1 for yes, 0 for no)"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "post_object"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "post_type": {
                            "$ref": "#/definitions/post_type"
                        },
                        "taxonomy": {
                            "$ref": "#/definitions/taxonomy_filter"
                        },
                        "allow_null": {
                            "$ref": "#/definitions/allow_null"
                        },
                        "multiple": {
                            "$ref": "#/definitions/multiple"
                        },
                        "return_format": {
                            "type": "string",
                            "enum": [
                                "object",
                                "id"
                            ],
                            "default": "object",
                            "description": "Value returned (WP_Post object or post ID)"
                        },
                        "ui": {
                            "type": "integer",
                            "default": 1,
                            "description": "Use enhanced Select2 UI (1 for yes, 0 for no)"
                        },
                        "bidirectional_target": {
                            "$ref": "#/definitions/bidirectional_target"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "relationship"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "post_type": {
                            "$ref": "#/definitions/post_type"
                        },
                        "taxonomy": {
                            "$ref": "#/definitions/taxonomy_filter"
                        },
                        "min": {
                            "$ref": "#/definitions/min"
                        },
                        "max": {
                            "$ref": "#/definitions/max"
                        },
                        "filters": {
                            "type": "array",
                            "default": [
                                "search",
                                "post_type",
                                "taxonomy"
                            ],
                            "description": "Enabled filters for the relationship field UI"
                        },
                        "elements": {
                            "type": "array",
                            "default": [],
                            "description": "Additional elements to display (e.g., 'featured_image')"
                        },
                        "return_format": {
                            "type": "string",
                            "enum": [
                                "object",
                                "id"
                            ],
                            "default": "object",
                            "description": "Value returned (WP_Post object or post ID)"
                        },
                        "bidirectional_target": {
                            "$ref": "#/definitions/bidirectional_target"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "taxonomy"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "taxonomy": {
                            "type": "string",
                            "default": "category",
                            "description": "The taxonomy to select terms from"
                        },
                        "field_type": {
                            "type": "string",
                            "enum": [
                                "checkbox",
                                "multi_select",
                                "radio",
                                "select"
                            ],
                            "default": "checkbox",
                            "description": "UI type for term selection"
                        },
                        "multiple": {
                            "$ref": "#/definitions/multiple"
                        },
                        "allow_null": {
                            "$ref": "#/definitions/allow_null"
                        },
                        "return_format": {
                            "type": "string",
                            "enum": [
                                "object",
                                "id"
                            ],
                            "default": "id",
                            "description": "Value returned (WP_Term object or term ID)"
                        },
                        "add_term": {
                            "type": "integer",
                            "default": 1,
                            "description": "Allow new terms to be created (1 for yes, 0 for no)"
                        },
                        "load_terms": {
                            "type": "integer",
                            "default": 0,
                            "description": "Load terms assigned to post (1 for yes, 0 for no)"
                        },
                        "save_terms": {
                            "type": "integer",
                            "default": 0,
                            "description": "Connect selected terms to post (1 for yes, 0 for no)"
                        },
                        "bidirectional_target": {
                            "$ref": "#/definitions/bidirectional_target"
                        }
                    },
                    "additionalProperties": false
                },
                {
                    "type": "object",
                    "required": [
                        "key",
                        "label",
                        "name",
                        "type"
                    ],
                    "properties": {
                        "key": {
                            "type": "string",
                            "pattern": "^field_.+$",
                            "minLength": 1,
                            "description": "Unique identifier for the field with field_ prefix (e.g. 'field_abc123')"
                        },
                        "label": {
                            "type": "string",
                            "minLength": 1,
                            "description": "The label displayed for this field"
                        },
                        "name": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9_-]*$",
                            "description": "The field name/meta_key used to save and load data (empty for layout fields like tab, accordion)"
                        },
                        "aria-label": {
                            "type": "string",
                            "description": "Accessible label for screen readers"
                        },
                        "type": {
                            "type": "string",
                            "enum": [
                                "user"
                            ],
                            "description": "The type of field"
                        },
                        "instructions": {
                            "type": "string",
                            "description": "Instructions for content editors"
                        },
                        "required": {
                            "type": [
                                "boolean",
                                "integer"
                            ],
                            "default": false,
                            "description": "Whether the field is required"
                        },
                        "conditional_logic": {
                            "type": [
                                "boolean",
                                "integer",
                                "string",
                                "array"
                            ],
                            "default": 0,
                            "description": "Conditional logic rules for field visibility. False/0/empty string to disable, or array of rule groups."
                        },
                        "wrapper": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "width": {
                                    "type": "string",
                                    "description": "Width of the field wrapper (e.g. '50' for 50%)"
                                },
                                "class": {
                                    "type": "string",
                                    "description": "CSS class(es) for the field wrapper"
                                },
                                "id": {
                                    "type": "string",
                                    "description": "HTML ID for the field wrapper"
                                }
                            },
                            "description": "Wrapper element settings"
                        },
                        "menu_order": {
                            "type": "integer",
                            "description": "Order of the field within its parent"
                        },
                        "parent": {
                            "type": [
                                "string",
                                "integer"
                            ],
                            "description": "Parent field or field group key/ID"
                        },
                        "parent_layout": {
                            "type": "string",
                            "description": "Parent layout key for flexible content sub-fields"
                        },
                        "role": {
                            "type": "string",
                            "default": "",
                            "description": "Limit to specific user role (empty for all roles)"
                        },
                        "multiple": {
                            "$ref": "#/definitions/multiple"
                        },
                        "allow_null": {
                            "$ref": "#/definitions/allow_null"
                        },
                        "return_format": {
                            "type": "string",
                            "enum": [
                                "array",
                                "object",
                                "id"
                            ],
                            "default": "array",
                            "description": "Value returned (user array, WP_User object, or user ID)"
                        },
                        "bidirectional_target": {
                            "$ref": "#/definitions/bidirectional_target"
                        }
                    },
                    "additionalProperties": false
                }
            ]
        },
        "conditionalLogicGroup": {
            "type": "array",
            "items": {
                "$ref": "#/definitions/conditionalLogicRule"
            },
            "minItems": 1,
            "description": "Group of conditional logic rules (AND logic within group)"
        },
        "conditionalLogicRule": {
            "type": "object",
            "required": [
                "field",
                "operator"
            ],
            "additionalProperties": false,
            "properties": {
                "field": {
                    "type": "string",
                    "pattern": "^field_.+$",
                    "description": "Field key to check"
                },
                "operator": {
                    "type": "string",
                    "enum": [
                        "==",
                        "!=",
                        "!==",
                        "==empty",
                        "!=empty",
                        "==pattern",
                        "==contains",
                        "!=contains",
                        "<",
                        ">"
                    ],
                    "description": "Comparison operator"
                },
                "value": {
                    "type": "string",
                    "description": "Value to compare against (not required for ==empty and !=empty operators)"
                }
            }
        },
        "default_value": {
            "type": "string",
            "default": "",
            "description": "Default value for the field"
        },
        "default_value_numeric": {
            "type": [
                "string",
                "number"
            ],
            "default": "",
            "description": "Default value for numeric fields (string for empty, number for value)"
        },
        "default_value_multi": {
            "type": [
                "string",
                "array"
            ],
            "default": "",
            "description": "Default value(s) for multi-select fields (string for single, array for multiple)"
        },
        "placeholder": {
            "type": "string",
            "default": "",
            "description": "Placeholder text shown when field is empty"
        },
        "prepend": {
            "type": "string",
            "default": "",
            "description": "Text or HTML displayed before the input"
        },
        "append": {
            "type": "string",
            "default": "",
            "description": "Text or HTML displayed after the input"
        },
        "maxlength": {
            "type": [
                "integer",
                "string"
            ],
            "default": "",
            "description": "Maximum character length (empty string for unlimited)"
        },
        "rows": {
            "type": [
                "integer",
                "string"
            ],
            "default": "",
            "description": "Number of rows for textarea display"
        },
        "new_lines": {
            "type": "string",
            "enum": [
                "wpautop",
                "br",
                ""
            ],
            "default": "",
            "description": "How to handle new lines in output (wpautop, br, or none)"
        },
        "return_format_media": {
            "type": "string",
            "enum": [
                "array",
                "url",
                "id"
            ],
            "default": "array",
            "description": "How the media value is returned (array of data, URL string, or attachment ID)"
        },
        "library": {
            "type": "string",
            "enum": [
                "all",
                "uploadedTo"
            ],
            "default": "all",
            "description": "Media library source (all media or uploaded to current post only)"
        },
        "mime_types": {
            "type": "string",
            "default": "",
            "description": "Comma-separated list of allowed MIME types (e.g., 'image/png, image/jpeg')"
        },
        "preview_size": {
            "type": "string",
            "default": "medium",
            "description": "Image size for preview display in admin"
        },
        "min_width": {
            "type": "integer",
            "default": 0,
            "description": "Minimum image width in pixels (0 for no limit)"
        },
        "min_height": {
            "type": "integer",
            "default": 0,
            "description": "Minimum image height in pixels (0 for no limit)"
        },
        "max_width": {
            "type": "integer",
            "default": 0,
            "description": "Maximum image width in pixels (0 for no limit)"
        },
        "max_height": {
            "type": "integer",
            "default": 0,
            "description": "Maximum image height in pixels (0 for no limit)"
        },
        "min_size": {
            "type": "integer",
            "default": 0,
            "description": "Minimum file size in MB (0 for no limit)"
        },
        "max_size": {
            "type": "integer",
            "default": 0,
            "description": "Maximum file size in MB (0 for no limit)"
        },
        "choices": {
            "type": [
                "object",
                "array"
            ],
            "default": [],
            "description": "Available choices as value:label pairs (object when populated, array when empty)"
        },
        "allow_null": {
            "type": "integer",
            "default": 0,
            "description": "Allow a null/empty value to be selected (1 for yes, 0 for no)"
        },
        "multiple": {
            "type": "integer",
            "default": 0,
            "description": "Allow multiple values to be selected (1 for yes, 0 for no)"
        },
        "return_format_choice": {
            "type": "string",
            "enum": [
                "value",
                "label",
                "array"
            ],
            "default": "value",
            "description": "Value returned (value, label, or both as array)"
        },
        "layout_choice": {
            "type": "string",
            "enum": [
                "vertical",
                "horizontal"
            ],
            "default": "vertical",
            "description": "Layout direction for choices (default varies by field type)"
        },
        "min": {
            "type": "integer",
            "default": 0,
            "description": "Minimum number of items required (0 for no minimum)"
        },
        "max": {
            "type": "integer",
            "default": 0,
            "description": "Maximum number of items allowed (0 for no limit)"
        },
        "post_type": {
            "type": "array",
            "default": [],
            "description": "Limit selection to specific post types (empty for all)"
        },
        "taxonomy_filter": {
            "type": "array",
            "default": [],
            "description": "Limit selection to posts with specific taxonomy terms"
        },
        "bidirectional_target": {
            "type": "array",
            "default": [],
            "description": "Target fields for bidirectional relationships"
        },
        "first_day": {
            "type": "integer",
            "default": 1,
            "description": "Week start day (0 = Sunday, 1 = Monday, etc.)"
        },
        "default_to_current_date": {
            "type": "integer",
            "default": 0,
            "description": "Set current date/time as default value (1 for yes, 0 for no)"
        },
        "sub_fields": {
            "type": "array",
            "default": [],
            "description": "Nested fields within this field"
        },
        "layout_display": {
            "type": "string",
            "enum": [
                "block",
                "table",
                "row"
            ],
            "description": "Visual layout style for rendering fields"
        },
        "button_label": {
            "type": "string",
            "default": "",
            "description": "Text label for the add row button"
        },
        "endpoint": {
            "type": "integer",
            "default": 0,
            "description": "Define an endpoint for the previous accordion/tab group"
        }
    }
}
