Schema Form
Introduction
Section titled “Introduction”Renders a complete form from a JSON Schema subset (draft 2020-12 keywords) and an optional UI schema. The fields are the existing AbsoluteUI controls inside a native <form> managed by Form, and every control is named by its JSON Pointer (/address/city), so values validate, serialize, and show the Error Summary exactly like a hand-written form. getValue() returns typed JSON, aui-submit carries the validated value, and server errors map back with setErrors({ pointer: message }). The schema itself is checked first: an unsupported keyword is a configuration error naming its pointer, never silently ignored.
Supported schema keywords: type (string, number, integer, boolean, object, array), title, description, default, enum, oneOf (entries { const, title?, description? }), minimum, maximum, minLength, maxLength, pattern, format (date, date-time, time, email, uri), items (primitives or objects), minItems, maxItems, properties, required, additionalProperties: false, readOnly, and the annotations $schema, $id, $comment, examples.
- JSON Schema in, form outDraft 2020-12 keywords: types, required, enums, ranges, lengths, patterns, formats, arrays, and nested objects.
- Real AbsoluteUI controlsFields are Text Input, Select, Date Picker, and friends inside Form, so validation and the Error Summary work as usual.
- UI schemaWidgets, order, columns, help text, placeholders, and safe JSON visibility conditions without eval.
- Arrays with the keyboardAdd, remove, and reorder entries with buttons; every change is announced.
- Typed JSON and pointersgetValue() returns typed JSON; server errors map back with setErrors by JSON Pointer.
- Strict by designUnsupported keywords are configuration errors with their pointers, never silently ignored.
Use it for
- Forms defined by configuration or by administrators (questionnaires, request types, settings pages).
- Many similar forms whose fields change without a release.
- Forms produced by Form Builder.
Use something else for
- A single, stable form with custom layout or behavior: compose Form, Form Field, and the controls directly.
- Schemas that need $ref, allOf/anyOf, if/then/else, or arbitrary oneOf subschemas (not supported).
- Spreadsheet-like data entry: use Data Grid.
Anatomy
<div class="aui-schema-form"> (size container) <form class="aui-schema-form__form aui-form" aria-label="Leave request" novalidate> <div class="aui-error-summary">...</div> (after a failed submit) <div class="aui-schema-form__body"> <div class="aui-schema-form__grid aui-schema-form__grid--columns"> <div class="aui-schema-form__cell">[Select name="/type"]</div> <div class="aui-schema-form__cell aui-schema-form__cell--span" hidden>[Textarea name="/reason"]</div> <fieldset class="aui-schema-form__group aui-fieldset"><legend>Address</legend>...</fieldset> <fieldset class="aui-schema-form__array aui-fieldset"><legend>Contacts</legend> <ol class="aui-schema-form__items"> <li class="aui-schema-form__item">[fieldset "Contact 1"] <div class="aui-schema-form__tools">[up][down][remove]</div></li> </ol> <p class="aui-schema-form__empty" hidden>No entries yet.</p> <button class="aui-schema-form__add">Add Contact</button> </fieldset> </div> </div> <div class="aui-schema-form__actions"><button type="submit">Submit</button><button type="reset" hidden>Reset</button></div> </form></div>Live example
Section titled “Live example”Use the bar above each frame to switch theme, density, direction, and locale.
Schema Form in the Form builder showcase
Section titled “Schema Form in the Form builder showcase”The part of the Form builder showcase that uses Schema Form. Change its options, use it with the keyboard, and watch the event log; the link in the frame opens the full showcase. The bar above the frame switches theme, density, direction, and locale.
Showcase source
// Form builder showcase: an HR administrator builds a leave request form in Form Builder// (palette, canvas reordering by pointer or keyboard, properties, JSON, undo), and the published// Schema Form below renders the same document live. Submitting shows the validated JSON value; a// simulated server rejects a date with an error mapped back by JSON Pointer.import { createBusinessCalendar } from '@absoluteui/components/business-calendar';import { FormBuilder, type FormBuilderChangeDetail } from '@absoluteui/components/form-builder';import { SchemaForm, type FormSchema, type SchemaFormSubmitDetail, type UiField } from '@absoluteui/components/schema-form';import { parsePlainDate, plainDate } from '@absoluteui/core';import { action, createShowcase, hostIn, section, status, toggle } from './kit.js';
const sc = createShowcase({ title: 'Form builder', description: 'Build a leave request form: add field types from the palette, reorder them by dragging or with the keyboard, and edit their properties. The published form below follows every change.', simulated: true,});
const LEAVE: FormSchema = { type: 'object', title: 'Leave request', required: ['type', 'from', 'days'], properties: { type: { type: 'string', title: 'Leave type', oneOf: [{ const: 'annual', title: 'Annual leave' }, { const: 'sick', title: 'Sick leave' }, { const: 'other', title: 'Other' }] }, reason: { type: 'string', title: 'Reason', description: 'Tell your manager why you need the time off.', maxLength: 500 }, from: { type: 'string', title: 'First day', format: 'date' }, days: { type: 'integer', title: 'Working days', minimum: 1, maximum: 30 }, halfDay: { type: 'boolean', title: 'Start with a half day' }, cover: { type: 'string', title: 'Who covers for you?', format: 'email' }, },};const LEAVE_UI: UiField = { columns: 2, order: ['type', 'reason', 'from', 'days', 'halfDay', 'cover'], fields: { reason: { widget: 'textarea', span: 2, visibleIf: { field: 'type', equals: 'other' } }, from: { disableNonWorking: true }, halfDay: { widget: 'switch' }, cover: { placeholder: 'colleague@example.com' }, },};
// Company calendar: Monday to Friday with two public holidays (date fields skip them).const calendar = createBusinessCalendar({ workingDays: [1, 2, 3, 4, 5], holidays: [{ date: plainDate(2026, 12, 25), name: 'Christmas Day' }, { date: plainDate(2027, 1, 1), name: "New Year's Day" }] });
const builderSection = section(sc, 'Designer', ['form-builder']);const builderHost = hostIn(builderSection);const builder = FormBuilder.create(builderHost, { label: 'Leave request form', schema: LEAVE, uiSchema: LEAVE_UI });sc.listen(builderHost, ['aui-change'], 'builder');
const formSection = section(sc, 'Published form', ['schema-form', 'form-builder']);const formHost = hostIn(formSection);const form = SchemaForm.create(formHost, { schema: LEAVE, uiSchema: LEAVE_UI, businessCalendar: calendar, submitLabel: 'Request leave' });sc.listen(formHost, ['aui-change', 'aui-invalid'], 'form');const result = status(formSection);result.textContent = 'Submit the form to see its JSON value.';
let serverRejects = false;builderHost.addEventListener('aui-change', (e) => { const { schema, uiSchema } = (e as CustomEvent<FormBuilderChangeDetail>).detail; form.update({ schema, uiSchema });});formHost.addEventListener('aui-submit', (e) => { const { value } = (e as CustomEvent<SchemaFormSubmitDetail>).detail; sc.log('form aui-submit', value); const from = typeof value.from === 'string' ? parsePlainDate(value.from) : null; if (serverRejects && from) { // The simulated server answers 422 with errors by JSON Pointer. form.setErrors({ '/from': 'Your team already has two people away that week. Pick another first day.' }); result.textContent = 'The server rejected the request (see the error on First day).'; return; } result.textContent = `Submitted value: ${JSON.stringify(value)}`;});
action(sc, 'Start empty', () => { builder.setValue({ type: 'object', title: 'Leave request', properties: {} }, {}); form.update({ schema: { type: 'object', title: 'Leave request', properties: {} }, uiSchema: {}, value: {} }); sc.log('builder cleared');}, ['form-builder']);action(sc, 'Build leave request', () => { builder.setValue(LEAVE, LEAVE_UI); form.update({ schema: LEAVE, uiSchema: LEAVE_UI, value: {} }); sc.log('builder loaded the leave request');}, ['form-builder']);action(sc, 'Fill sample answers', () => { form.setValue({ type: 'annual', from: '2026-12-21', days: 4, cover: 'sam.lee@example.com' });});toggle(sc, 'Server rejects the date', false, (on) => { serverRejects = on;});toggle(sc, 'Show reset', false, (showReset) => { form.update({ showReset });});toggle(sc, 'Disabled', false, (disabled) => { form.update({ disabled });});Leave request with a conditional field
Section titled “Leave request with a conditional field”import { SchemaForm, type FormSchema, type SchemaFormSubmitDetail } from '@absoluteui/components/schema-form';
const schema: FormSchema = { type: 'object', title: 'Leave request', required: ['type', 'from', 'days'], properties: { type: { type: 'string', title: 'Leave type', oneOf: [{ const: 'annual', title: 'Annual leave' }, { const: 'sick', title: 'Sick leave' }, { const: 'other', title: 'Other' }] }, reason: { type: 'string', title: 'Reason', maxLength: 500 }, from: { type: 'string', title: 'First day', format: 'date' }, days: { type: 'integer', title: 'Working days', minimum: 1, maximum: 30 }, },};const host = document.createElement('div');document.body.append(host);const form = SchemaForm.create(host, { schema, uiSchema: { columns: 2, fields: { reason: { widget: 'textarea', visibleIf: { field: 'type', equals: 'other' }, span: 2 } } }, submitLabel: 'Request leave',});host.addEventListener('aui-submit', (event) => { console.log((event as CustomEvent<SchemaFormSubmitDetail>).detail.value);});form.getValue();Arrays of objects and server errors
Section titled “Arrays of objects and server errors”import { SchemaForm, type FormSchema } from '@absoluteui/components/schema-form';
const schema: FormSchema = { type: 'object', properties: { name: { type: 'string', title: 'Name' }, contacts: { type: 'array', title: 'Emergency contacts', minItems: 1, maxItems: 3, items: { type: 'object', title: 'Contact', required: ['name', 'phone'], properties: { name: { type: 'string', title: 'Name' }, phone: { type: 'string', title: 'Phone' } } }, }, },};const host = document.createElement('div');document.body.append(host);const form = SchemaForm.create(host, { schema, validate: async (value, signal) => { const response = await fetch('/api/onboarding/check', { method: 'POST', body: JSON.stringify(value), signal }); const body: unknown = await response.json(); return typeof body === 'object' && body !== null ? Object.fromEntries(Object.entries(body).filter((e): e is [string, string] => typeof e[1] === 'string')) : {}; },});// Server errors by JSON Pointer:form.setErrors({ '/contacts/0/phone': 'Enter a phone number we can call.' });Install and start
Section titled “Install and start”npm install @absoluteui/components @absoluteui/core @absoluteui/themeRegistry setup, the theme stylesheet, and the Content Security Policy are covered in Installation.
import { SchemaForm } from '@absoluteui/components/schema-form';import '@absoluteui/components/form/style.css';import '@absoluteui/components/error-summary/style.css';import '@absoluteui/components/fieldset/style.css';import '@absoluteui/components/button/style.css';import '@absoluteui/components/text-input/style.css';import '@absoluteui/components/textarea/style.css';import '@absoluteui/components/number-input/style.css';import '@absoluteui/components/select/style.css';import '@absoluteui/components/radio-group/style.css';import '@absoluteui/components/combobox/style.css';import '@absoluteui/components/multi-select/style.css';import '@absoluteui/components/checkbox/style.css';import '@absoluteui/components/checkbox-group/style.css';import '@absoluteui/components/switch/style.css';import '@absoluteui/components/slider/style.css';import '@absoluteui/components/rich-text-editor/style.css';import '@absoluteui/components/date-input/style.css';import '@absoluteui/components/calendar/style.css';import '@absoluteui/components/date-picker/style.css';import '@absoluteui/components/date-time-picker/style.css';import '@absoluteui/components/time-picker/style.css';import '@absoluteui/components/schema-form/style.css';First use
Section titled “First use”import { SchemaForm } from '@absoluteui/components/schema-form';import '@absoluteui/components/form/style.css';import '@absoluteui/components/schema-form/style.css';
const host = document.querySelector<HTMLElement>('#feedback');if (host) { SchemaForm.create(host, { schema: { type: 'object', title: 'Feedback', required: ['rating'], properties: { rating: { type: 'integer', title: 'Rating', minimum: 1, maximum: 5 }, comment: { type: 'string', title: 'Comment' } } }, uiSchema: { fields: { rating: { widget: 'slider' }, comment: { widget: 'textarea' } } }, });}More usage
import { SchemaForm, type FormSchema, type SchemaFormSubmitDetail } from '@absoluteui/components/schema-form';
const schema: FormSchema = { type: 'object', title: 'Leave request', required: ['type', 'from'], properties: { type: { type: 'string', title: 'Leave type', oneOf: [{ const: 'annual', title: 'Annual leave' }, { const: 'other', title: 'Other' }] }, reason: { type: 'string', title: 'Reason' }, from: { type: 'string', title: 'First day', format: 'date' }, },};const host = document.querySelector<HTMLElement>('#leave');if (host) { const form = SchemaForm.create(host, { schema, uiSchema: { fields: { reason: { widget: 'textarea', visibleIf: { field: 'type', equals: 'other' } } } } }); host.addEventListener('aui-submit', (event) => { const { value } = (event as CustomEvent<SchemaFormSubmitDetail>).detail; void fetch('/api/leave', { method: 'POST', body: JSON.stringify(value) }).then(async (r) => { if (r.status === 422) form.setErrors((await r.json()) as Record<string, string>); }); });}Using Angular? See Schema Form for Angular.
API reference
Section titled “API reference”Factory
Section titled “Factory”SchemaForm.create(host: HTMLElement, options: SchemaFormOptions): SchemaFormGlobal configuration key: schemaForm (see Configuration).
Options
Section titled “Options”| Option | Type | Default | Description |
|---|---|---|---|
schema |
FormSchema |
JSON Schema subset (root type object); unsupported keywords throw a configuration error listing each pointer. Required. | |
uiSchema |
UiField |
Presentation: widget, label, help, placeholder, order, columns, span, visibleIf, rows, orientation, disableNonWorking, addLabel, patternMessage; children under fields, array items under items. | |
value |
JsonObject |
Initial value; values that do not match the schema type are ignored. reset() returns to it. | |
label |
string |
Accessible name of the form. Default: the schema title. | |
submitLabel |
string |
Submit button text. Default: localized Submit. | |
showReset |
boolean |
"false" |
Also show a reset button. |
disabled |
boolean |
"false" |
Disable every field and the actions. |
businessCalendar |
BusinessCalendarEngine | null |
"null" |
Working days and holidays for the date pickers; disableNonWorking in the UI schema uses it. |
timezone |
string |
IANA time zone of date-time fields. Default: the global configuration. | |
validate |
(value: JsonObject, signal: AbortSignal) => Promise<SchemaFormErrors> |
Async validation after the constraint checks pass; return messages by JSON Pointer. | |
showActions |
boolean |
"true" |
Show the submit (and optional reset) buttons. Globally configurable. |
locale |
string |
"en-US" |
Locale of messages and of the rendered controls. Globally configurable. Inherited from common configuration. |
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
host |
HTMLElement |
The host element. |
element |
HTMLFormElement |
The native form element. |
form |
Form |
The Form instance (validation, Error Summary, submission, state events). |
options |
Readonly<SchemaFormOptions> |
Current options. |
Methods
Section titled “Methods”| Method | Description |
|---|---|
getValue(): JsonObject |
The current value as JSON; hidden and empty optional fields are left out. |
setValue(value: JsonObject): void |
Replace the current value (no events). |
validate(): boolean |
Validate visible fields and array sizes and show messages (no async validation). |
submit(): void |
Submit through the native pipeline. |
reset(): void |
Restore the initial value and clear messages. |
setErrors(errors: SchemaFormErrors): void |
Show errors by JSON Pointer on fields, groups, or the summary. |
clearErrors(): void |
Remove every message. |
focusField(pointer: string): boolean |
Move focus to the field at a pointer; false when it is not visible. |
update(options: Partial<SchemaFormOptions>): void |
Merge options and re-render, keeping the current value unless value is given. |
destroy(): void |
Destroy every control and the Form and empty the host. |
Events
Section titled “Events”| Event | Detail | Bubbles | Cancelable | Description |
|---|---|---|---|---|
aui-change |
SchemaFormChangeDetail |
Yes | No | Any edit, including array add, remove, and move: { value, pointer }. Control events do not leave the form. |
aui-submit |
SchemaFormSubmitDetail |
Yes | No | Valid submission: { value } (typed JSON). |
aui-invalid |
SchemaFormInvalidDetail |
Yes | No | Submission blocked: { errors: [{ pointer, label, message }] }. |
CSS classes
Section titled “CSS classes”All rules live in the aui.components cascade layer, so application styles override them without specificity battles.
| Class | Purpose |
|---|---|
aui-schema-form |
Host (a size container). |
aui-schema-form__form |
The native form (also aui-form). |
aui-schema-form__grid | __grid--columns |
Fields of an object; with columns from the UI schema. |
aui-schema-form__cell | __cell--span |
Wrapper of one field; spanning several columns. |
aui-schema-form__group |
Nested object (Fieldset). |
aui-schema-form__array |
Array of entries (Fieldset). |
aui-schema-form__items | __item | __tools |
Entry list, one entry, and its move and remove buttons. |
aui-schema-form__empty | __add |
Empty-array text and the add button. |
aui-schema-form__actions |
Submit and reset buttons. |
Design tokens
Section titled “Design tokens”Tokens this stylesheet reads (verified in CI). Override them in a theme or with the Theme Designer.
--aui-border-width | --aui-color-border | --aui-color-text | --aui-color-text-muted | --aui-font-family-sans | --aui-font-size-md | --aui-line-height-normal | --aui-radius-md | --aui-space-1 | --aui-space-2 | --aui-space-3 | --aui-space-4 | --aui-space-5
TypeScript definitions
type JsonValue = string | number | boolean | null | JsonValue[] | { [key: string]: JsonValue };interface FormSchema { type: 'string' | 'number' | 'integer' | 'boolean' | 'object' | 'array'; title?: string; description?: string; default?: JsonValue; enum?: readonly (string | number | boolean | null)[]; oneOf?: readonly { const: string | number | boolean | null; title?: string; description?: string }[]; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; pattern?: string; format?: 'date' | 'date-time' | 'time' | 'email' | 'uri'; items?: FormSchema; minItems?: number; maxItems?: number; properties?: Readonly<Record<string, FormSchema>>; required?: readonly string[]; additionalProperties?: false; readOnly?: boolean;}interface UiField { widget?: SchemaWidget; label?: string; help?: string; placeholder?: string; order?: readonly string[]; columns?: number; span?: number; visibleIf?: FormCondition; rows?: number; orientation?: 'vertical' | 'horizontal'; disableNonWorking?: boolean; addLabel?: string; patternMessage?: string; fields?: Readonly<Record<string, UiField>>; items?: UiField;}interface SchemaFormChangeDetail { value: JsonObject; pointer: string | null }interface SchemaFormSubmitDetail { value: JsonObject }interface SchemaFormInvalidDetail { errors: readonly { pointer: string | null; label: string; message: string }[] }Accessibility and performance
Section titled “Accessibility and performance”Accessibility
Section titled “Accessibility”Pattern: Native form with labelled AbsoluteUI controls (each follows its own APG pattern), Fieldset groups for objects and arrays, and the GOV.UK-style Error Summary from Form.
Checked on every docs build: the showcase passes axe (WCAG 2.2 A and AA rules) in the default, dark, and high-contrast themes and right to left; the playground loads without errors and passes axe before and after every on/off option is switched, with no Content Security Policy violations.
Keyboard
Section titled “Keyboard”| Key | Context | Action |
|---|---|---|
| Tab / Shift+Tab | Form | Move through fields, entry actions, the add button, and the submit button. |
| Enter / Space | Move, remove, add buttons | Act; focus stays on the moved entry’s action or moves to the next entry. |
| Enter | Single-line field | Submit (native form behavior). |
| Element | Role |
|---|---|
| form | form (native, named by label or the schema title) |
| object and array | group (native fieldset with legend) |
| array entries | list / listitem (native ol) |
| move and remove | button (native, icon-only with a name) |
ARIA attributes
Section titled “ARIA attributes”| Attribute | Element | Value |
|---|---|---|
aria-label |
form | label option or schema title |
aria-label |
move and remove buttons | ‘Move Contact 2 up’, ‘Remove Contact 2’ |
aria-describedby |
fields and groups | help text and messages (from the controls and Fieldset) |
hidden |
fields whose condition is false | present; their controls are disabled |
After a failed submission focus moves to the Error Summary (or the first field, per Form’s focusOnInvalid). Adding an entry focuses its first field; removing focuses the next entry’s remove button or the add button.
WCAG 2.2 success criteria addressed
Section titled “WCAG 2.2 success criteria addressed”Automated test results: Accessibility and compliance.
Notes and known caveats
Section titled “Notes and known caveats”- Array changes are announced through the polite live region (added, removed, moved to position N of M).
- Conditional fields are removed from the accessibility tree while hidden and never block submission.
- Manual screen-reader verification (NVDA, JAWS, VoiceOver) is pending.
Performance
Section titled “Performance”| Import cost | Minified | gzip | brotli | CSS brotli |
|---|---|---|---|---|
@absoluteui/components/schema-form |
309.1 kB | 89.3 kB | 72.4 kB | 0.6 kB |
Measured at build time, including every AbsoluteUI module the component pulls in. No third-party runtime dependencies.
| Budget (enforced in CI) | Limit |
|---|---|
| SchemaForm.create with 50 fields | < 60 ms average in headless Chromium |
Tested scale: Up to 500 fields and arrays of 100 entries; every field is a real control in the DOM (no virtualization).
Rendering creates one control per field; visibility re-evaluates on each edit (linear in the number of fields). Array changes rebuild only that array’s entries.
Measured run times: Performance.
Details
Section titled “Details”States
Pristine, editing, conditional fields hidden, empty array, array at maxItems (add disabled), invalid with the Error Summary, async validation pending (aria-busy on the form), submitted, server errors, disabled.
State transitions
| From | Trigger | To |
|---|---|---|
| editing | an edit that changes a condition | dependent fields shown or hidden (hidden ones disabled) |
| editing | submit with invalid fields | Error Summary focused; aui-invalid |
| editing | submit, valid, validate returns errors |
messages on fields and groups; aui-invalid |
| editing | submit, valid | aui-submit { value } |
| any | setErrors() |
messages shown until the field is edited or the form resubmitted |
| any | reset() or a reset button |
initial value, arrays restored, messages cleared |
Accessibility notes
- Error messages come from the controls and the Error Summary of Form; summary links name the field.
- Array changes are announced politely (“Contact 2 moved to position 1 of 3”).
- Required fields use each control’s required marker; required arrays of choices mean “select at least one”.
- The e2e axe run covers three themes; manual screen-reader verification is pending.
Responsive behavior
One column by default. columns from the UI schema (2 to 4) applies as far as the form’s width allows: each column needs about 13rem, so a form gets 2 columns from 27rem, 3 from 41rem, and 4 from 55rem (container queries), and one column below 27rem, so phones never scroll horizontally. span is clamped to the columns in use. Entry actions wrap under the entry.
Right-to-left
Logical properties only; the controls mirror themselves.
Theming
Three themes, density, and forced colors follow the controls; group and array borders use color-border (CanvasText in forced colors).
Global configuration
configureAbsoluteUI({ components: { schemaForm: { showActions: false } } });Component configuration
Instance showActions and locale override configuration; configuration changes re-render the actions of existing forms. Form’s own configuration (focusOnInvalid, errorSummary) applies to the inner Form.
Timezones
format: date values are ISO dates (YYYY-MM-DD); date-time values are UTC instants (toISOString()), shown in timezone or the configured time zone; time values are HH:MM:SS. With businessCalendar, disableNonWorking: true in a field’s UI entry blocks weekends and holidays in the picker.
Icons
Array buttons use the built-in arrow-up, arrow-down, trash, and plus icons (they follow the icon provider). Controls keep their own icon options.
Security
Titles, help text, and option labels are rendered as text. Rich-text values are sanitized by Rich Text Editor. Conditions are JSON interpreted by a fixed evaluator: no eval, no Function. pattern compiles with the u flag (at most 500 characters); depth is limited to 8 levels and size to 500 fields. Values from value that do not match the schema type are ignored.
Data handling
No persistence, network access, or telemetry. The validate option and the submission handling belong to the application.
Supported data scale
Up to 500 fields and arrays of 100 entries. Every field is a real control (no virtualization); split very long questionnaires into steps.
Edge cases
- A field whose condition refers to a hidden field sees no value (
filled: false). - Empty optional strings and numbers are left out of the value; booleans are always present; array entries left empty are
nullso positions stay stable. setErrorswith a pointer to an object or array marks the group; unknown pointers and''appear in the summary without a link.minItemsandmaxItemsof lists are checked on submit;maxItemsalso disables the add button.oneOfandenumvalues are compared by their string form: two choices whose strings collide are a schema error.
Errors
| Code | Category | Cause |
|---|---|---|
SCHEMA_FORM_SCHEMA |
configuration | The schema uses unsupported keywords or invalid values; the message lists up to five pointers. |
SCHEMA_FORM_UI_SCHEMA |
configuration | A widget that does not fit, an unknown UI key, a bad condition, or a reference to an unknown field. |
SCHEMA_FORM_OPTIONS / SCHEMA_FORM_VALUE / SCHEMA_FORM_ERRORS |
configuration | Invalid option types, a value that is not an object, or errors that are not strings. |
CFG_INVALID_VALUE / CFG_UNKNOWN_OPTION |
configuration | Invalid or unknown configuration. |
Errors are thrown before the host is modified; an invalid update() keeps the previous form.
Known limitations
- Conditions support equals, notEquals, in, and filled, combined with all, any, and not.
- Arrays of arrays are not supported.
- Reordering entries rebuilds their controls; focus moves to the matching action button.
- Manual screen-reader verification is pending.
Unsupported scenarios
$ref,$defs,allOf,anyOf,not,if/then/else,dependentSchemas,patternProperties, type arrays.- Formats other than
date,date-time,time,email,uri. - Custom widgets: use Form with your own controls.
(c) 2026 Kasadara Technology Solutions Pvt Ltd. AbsoluteUI is free to use under the AbsoluteUI Free Use License; it is not open source.