constAsDefaults skipOneOf is deprecated
Detect
- In your
Formprops orgetDefaultFormState()calls:defaultFormStateBehavior.constAsDefaultsset to'skipOneOf'.
Change
constAsDefaults: 'skipOneOf' left a constant oneOf empty. With the flag left unset, a list of several constants with no default now starts empty, under anyOf too (see A list of choices with no default starts empty), so 'skipOneOf' is deprecated (#5944).
Remove it, unless the form relies on it leaving out a oneOf of one constant, or the const of a property inside a oneOf option. It still leaves those out for a field with a single primitive type or none, and for a select over object or array constants with a single type or none.
-<Form schema={schema} validator={validator} defaultFormStateBehavior={{ constAsDefaults: 'skipOneOf' }} />
+<Form schema={schema} validator={validator} />
Verify
- No
defaultFormStateBehaviorsetsconstAsDefaults: 'skipOneOf', or the form needs it for aoneOfof one constant or aconstinside aoneOfoption. - With the setting removed, a constant
oneOfof several values with nodefaultstill starts empty.
Also read: