@rjsf/core
Advanced tools
Changelog
5.10.0
getFieldComponent()
to support rendering a custom component by given schema id ($id). #3740MultiSchemaField
to merge the selected oneOf/anyOf
value into base schema
, fixing #3744getClosestMatchingOption()
to resolve refs in options before computing the closest matching option, fixing an issue with using precompiled validators
anyOf
and discriminator
support in the recursive calculateIndexScore()
getDefaultFormState()
to merge the remaining schema into anyOf/oneOf
schema selected during the computation of values, fixing #3744retrieveSchema()
to merge the remaining schema into the anyOf/oneOf
schema selected during the resolving of dependencies, fixing #3744Changelog
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
flagChangelog
5.8.0
MultiSchemaField.getMatchingOption
to use option index from getClosestMatchingOption
, fixing #3693 and
#3705getClosestMatchingOption
to return selected option if all options score the same, fixing #3693 and #3705resolveCondition
to default formData as empty object when evaluating if expression, fixing #3706retrieveSchemaInternal
to return failed merged allOf sub schemas for expandAllBranches flag, fixing #3689hashForSchema
to sort schema fields in consistent order before stringify to prevent different hash ids for the same schemaenumOptionsSelectValue
to allow picking falsy enumOptions, fixing #3716AJV8PrecompiledValidator.rawValidation()
to use resolve root schema when comparing input schema, fixing #3708RJSFSchema
descriptionChangelog
5.7.2
ajv
types by simplifying the CompiledValidateFunction
type to avoid a bunch of Typescript errors encountered by users of the packageChangelog
5.7.1
cjs
development version, to not export the compileSchemaValidators()
function to avoid "Module not found: Can't resolve 'fs' error" issues, fixing #3668field
in the focusOnError
method in Form
validation
documentation to add a note with a web-resource to help folks work around the "Module not found: Can't resolve 'fs' error" issue for development environmentspackage-lock.json
files to bump peer-dependencies to 5.7.x
, fixing #3669Changelog
5.7.0
SelectWidget
and description for CheckboxWidget
MultiSchemaField
to use the new getDiscriminatorFieldFromSchema()
APIexperimental_defaultFormStateBehavior
prop to Form
FileWidget
to again support adding multiple files to arraysadditionalProperties
to fluent-ui theme, fixing #2777.8.x
version of @fluentui/react
maintaining backwards compatibility to version 7, fixing #3463getDiscriminatorFieldFromSchema()
(a refactor of code from MultiSchemaField
) and hashForSchema()
getDefaultFormState()
and toPathSchema()
to use getDiscriminatorFieldFromSchema()
to provide a discriminator field to getClosestMatchingOption()
calls.retrieveSchema()
internal API functions to support implementing an internal schemaParser()
API for use in precompiling schemas, in support of #3543toPathSchema()
to handle properties
in an object along with anyOf
/oneOf
, fixing #3628 and #1628computeDefaults()
into destructured props object to reduce clutter when only specifying later of the optional argument, fixing #3602computeDefaults()
to handle $ref
in an object along with anyOf
/oneOf
, fixing #3633compileSchemaValidators()
and createPrecompiledValidator()
implemented to support using precompiled validators build with AJV 8, fixing #3543custom-templates
describing how to extend the BaseInputTemplate
8.x
version of @fluentui/react
, fixing #3463validation
describing the new precompiled validators featurevalidator-ajv8.md
documentation to the api-reference
directory as well as putting it into the sidebar.js