@rjsf/core
Advanced tools
Changelog
5.12.0
experimental_defaultFormStateBehavior = { arrayMinItems: { populate: 'never' } }
(feature #3796)compileSchemaValidatorsCode
to allow creating precompiled validator without a file. This is useful in case when precompiled validator is to be created dynamically. #3793dts-cli
to use individual dev tools directly, updating package publish config
form-props
documentation arrayMinItems
, added description for never
.playground
to add the option for the new arrayMinItems.populate = 'never'
.Changelog
5.11.2
@types/material-ui
which can cause typescript issues in some situationsresolveAllReferences()
function to use object spreading to update properties and items in a schema rather than directly modifying the schema to avoid issues with frozen object, fixing #3805Changelog
5.9.0
getDefaultFormState()
to fix a bug where experimental_defaultFormStateBehavior: { emptyObjectFields: 'populateRequiredDefaults' }
wasn't working for object properties with $ref
sexperimental_defaultFormStateBehavior.arrayMinItems
from simple flag to an object containing two optional fields, populate
and mergeExtraDefaults
arrayMinItems.mergeExtraDefaults
flag, when "true", allows users to merge defaults onto the end of formData
arrays when minItems
is specifiedexperimental_defaultFormStateBehavior
as { arrayMinItems = 'requiredOnly }
on the Form
, now you would pass { arrayMinItems: { populate: 'requiredOnly' } }
mergeExtraArrayDefaults=false
flag to the mergeDefaultWithFormData()
utility function to support the new arrayMinItems.mergeExtraDefaults
experimental featureutility-functions
documentation to add the new mergeExtraArrayDefaults
flag for the mergeDefaultWithFormData()
functionform-props
documentation to update the arrayMinItems
documentation for the new object behaviorplayground
to add a checkbox for the new arrayMinItems.mergeExtraDefaults
flag