Options in schemas are always prefixed with x- (e.g. x-assertFormat) to not collide with future JSON schema spec keywords.
Options in schemas are always prefixed with x- (e.g. x-assertFormat) to not collide with future JSON schema spec keywords.
x-addPropertyContentType: boolean
Text content for "add property" buttons.
x-arrayAddType: boolean
Default: true
If array "add" buttons should be displayed.
x-arrayAddContentType: boolean
Text content for array "add" buttons.
x-arrayDeleteType: boolean
Default: true
If array "delete" buttons should be displayed.
x-arrayDeleteContentType: boolean
Text content for array "delete" buttons.
x-arrayDragContentType: boolean
Text content for array "drag" buttons.
x-arrayMoveType: boolean
Default: true
If array "move up" and "move down" buttons should be displayed.
x-arrayMoveDownContentType: boolean
Text content for array "move down" buttons.
x-arrayMoveUpContentType: boolean
Text content for array "move up" buttons.
x-assertFormatType: boolean
Default: false
Treats "format" as a validator rather than just an annotation.
x-collapseToggleContentType: boolean
Text content for "collapse" buttons.
x-containerAttributesType: object
Editors container HTML attributes can be set using this option. Attributes such as class or data-* will be applied to the container element.
x-deactivateNonRequiredType: boolean
Whether the editor should deactivate (hide) or activate (show) non required properties. Works only with object type editors.
x-editJsonDataType: boolean
Default: false
Enables inline JSON editing mode for this specific schema, allowing users to directly edit the JSON data within form fields.
{
"x-editJsonData": true,
"type": "object",
"title": "Edit JSON Data",
"description": "This object has 'x-editJsonData: true' which enables inline JSON editing.",
"properties": {
"name": {
"type": "string",
"title": "Name"
},
"description": {
"type": "string",
"title": "Description"
}
}
}
x-enableCollapseToggleType: boolean
Display a collapse button used to collapse or expand editors that support collapse like object and arrays.
x-enforceConstType: boolean
Default: true
Value will remain whatever is defined in schema "const".
x-enforceEnumType: boolean
Default: true
Whether the editor initial value will be the first item in the "enum".
x-enumTitlesType: string[]
Used to display user-friendly labels in the editor instead of those listed in "enum".
x-formatType: string
Determines which editor UI will be used to edit the json instance.
x-gridType: object
A configuration object to determine the position of the property editor in the parent's grid.
Options:
columns: How many columns should the editor occupy. The number of columns can vary between css frameworks and their configuration.offset: How many columns should the editor be offsettednewRow: Whether the editor should be put in a new rowx-hiddenType: boolean
Editors can be hidden using this option. When set to true, the editor is hidden.
x-infoType: object
Used to display extra information.
Options:
variant: "modal"title: Plain text or markdowncontent: Plain text or markdownx-inputAttributesType: object
Used to set attributes for the editor input if it has one.
x-messagesType: object | string[]
Validation error messages can be customized using this option in the schema. The option can be used in different ways:
Pass messages as an array of strings:
{
"type": "string",
"minLength": 5,
"x-messages": [
"5 chars please."
]
}Pass messages as an object with validation keywords as keys:
{
"type": "string",
"minLength": 5,
"const": "locoloco",
"x-messages": {
"minLength": "Need at least 5 sparks of brilliance.",
"const": "Only 'locoloco' unlocks the magic here."
}
}Pass messages with language codes for internationalization support:
{
"type": "string",
"minLength": 5,
"const": "locoloco",
"x-messages": {
"en": {
"minLength": "Need at least 5 sparks of brilliance.",
"const": "Only 'locoloco' unlocks the magic here."
}
}
}x-propertiesToggleContentType: boolean
Text content for "properties" buttons.
x-showErrorsType: string
Default: "change"
Options: "never", "change", "input", "always"
Determines when to display validation errors for this specific schema. Overrides the instance-level showErrors setting.
Note: The "input" option provides real-time validation as the user types, but only affects text-based inputs (string inputs, textareas, number inputs).
x-sortableType: boolean
Default: false
Items can be sorted via drag and drop if Sortable.js is available.
x-startCollapsedType: boolean
Whether the editor should start expanded or collapsed. Works on editors that support collapse like object and arrays.
x-switcherTitleType: string
Default: property name or "title"
The text displayed in the multiple editor switcher to select this sub-schema editor.
x-titleHiddenType: boolean
Default: false
Hides the editor title.
x-titleIconClassType: string
Icon class to use in titles if using any.
x-titleTemplateType: string
A template to form titles dynamically.