@rjsf/utils
Advanced tools
Changelog
5.22.2
AJV8Validator#transformRJSFValidationErrors
to replace the error message field with either the uiSchema
's ui:title
field if one exists or the parentSchema
title if one exists. Fixes #4348Changelog
5.22.1
Changelog
5.22.0
MultiSchemaField
to call the onChange
handler after setting the new option, fixing #3997 and #4314experimental_customMergeAllOf
option to retrieveSchema()
and getDefaultFormState()
to allow custom merging of allOf
schemasmergeDefaultsIntoFormData
option to Experimental_DefaultFormStateBehavior
type to control how to handle merging of defaultsmergeDefaultsWithFormData()
to add new optional defaultSupercedesUndefined
that when true uses the defaults rather than undefined
formData, fixing #4322getDefaultFormState()
to pass true to mergeDefaultsWithFormData
for defaultSupercedesUndefined
when mergeDefaultsIntoFormData
has the value useDefaultIfFormDataUndefined
, fixing #4322getClosestMatchingOption()
to improve the scoring of sub-property objects that are provided over ones that aren't, fixing #3997 and #4314form-props.md
to add documentation for the new experimental_customMergeAllOf
props and the experimental_defaultFormStateBehavior.mergeDefaultsIntoFormData
optionutility-functions.md
to add documentation for the new optional defaultSupercedesUndefined
parameter and the two missing optional fields on getDefaultFormState()
custom-templates.md
to add a section header for wrapping BaseInputTemplate
mergeDefaultsIntoFormData
option
Show Error List
component over one column, making it inline radio buttons rather than a selectChangelog
5.21.2
SchemaField
to pass required
flag to _AnyOfField
/_OneOfField
Form
to deal with null objects in filterErrorsBasedOnSchema()
, fixing #4306ErrorSchemaBuilder
to support adding, updating, and removing paths that are numbers, fixing #4297retrieveSchema
to not merge contains
properties in allOf
schema lists, fixing #2923custom-widgets-fields.md
to add examples of wrapping a widget/fieldChangelog
5.21.1
deepEquals()
from [#4292]deepEquals()
instead of lodash.isEqual()
from [#4292]Changelog
5.21.0
Form
to fix focusOnError()
to support the ids that include dots, fixing #4279@mui/material
and @mui/icon-material
, fixing 4283deepEquals()
to use fast-equals.createCustomEqual()
instead of lodash.isEqualWith()
, fixing #4291
lodash.isEqual()
to deepEquals()
in many of the utility functions as well@rjsf/utils
deepEquals()
instead of lodash.isEqual()
to improve performance, fixing #4291@mui/*
version 6, changing the name of the dropdown from material-ui-5
to mui
Changelog
5.20.1
5.20.x
due to types and API changes in @rjsf/utils
Changelog
5.20.0
ArrayField
, BooleanField
and StringField
to call optionsList()
with the additional UiSchema
parameter, fixing #4215 and #4260WidgetProps
type to add es?: ErrorSchema<T>, id?: string
to the params of the onChange
handler functionUIOptionsBaseType
to add the new enumNames
prop to support an alternate way to provide labels for enum
s in a schema, fixing #4215optionsList()
to take an optional uiSchema
that is used to extract alternate labels for enum
s or oneOf
/anyOf
in a schema, fixing #4215 and #4260
optionsList()
were expanded from <S extends StrictRJSFSchema = RJSFSchema>
to <S extends StrictRJSFSchema = RJSFSchema, T = any, F extends FormContextType = any>
to support the UiSchema
.custom-widget-fields.md
to add documentation for how to raise errors from a custom widget or field