@rjsf/core
Advanced tools
Changelog
5.23.1
package.json
to restrict @chakra-ui/react
's peer dependency to be < 3.0.0, fixing #4390NumberField
to properly pass through the errorSchema
and id
in the onChange handler, fixing #4382@rjsf/*
to be 5.23.x
Changelog
5.23.0
SchemaField
to no longer make schema fields with const read-only by default, partially fixing #4344Experimental_DefaultFormStateBehavior
to add a new constAsDefaults
optiongetDefaultFormState()
to use the new constAsDefaults
option to control how const is used for defaulting, fixing #4344, #4361 and #4377experimental_customMergeAllOf
option in functions that have previously missed it.ErrorSchemaBuilder
methods addErrors
and setErrors
to prevent duplicate error messages.title
or ui:title
if a Localizer
function is used. Fixes #4387constAsDefaults
optionChangelog
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/field