@rjsf/core
- Updated
ArrayField
to move errors in the errorSchema when the position of array items changes for the insert and copy cases.
@rjsf/material-ui
- Removed an unnecessary
Grid
container component in theArrayFieldTemplate
component that wrapped theArrayFieldItemTemplate
, fixing #3863 - Fixed an issue where
SelectWidget
switches from controlled to uncontrolled whenenumOptions
does not include a value, fixing #3844
@rjsf/mui
- Removed an unnecessary
Grid
container component in theArrayFieldTemplate
component that wrapped theArrayFieldItemTemplate
, fixing #3863 - Fixed an issue where
SelectWidget
switches from controlled to uncontrolled whenenumOptions
does not include a value, fixing #3844
@rjsf/utils
- Added
getOptionMatchingSimpleDiscriminator()
function getMatchingOption
andgetClosestMatchingOption
now bypassvalidator.isValid()
calls when simple discriminator is provided, fixing #3692- Fix data type in
FieldTemplateProps['onChange']
- Updated
retrieveSchema()
to properly resolve references inside ofproperties
and arrayitems
while also dealing with recursive$ref
s, fixing #3761- Updated
schemaParser()
andgetClosestMatchingOption()
to pass the newrecursiveRef
parameter added to internalretrieveSchema()
APIs
- Updated
- Added/updated all the necessary tests to restore the
100%
test coverage that was lost when updating to Jest 29- Updated
getDefaultFormState()
to remove an unnecessary check forformData
being an object since it is always guaranteed to be one, thereby allowing full testing coverage
- Updated
- Updated
getSchemaType()
to return the first schematype
when it is an array not containing'null'
, fixing #3875
@rjsf/validator-ajv8
- Updated the
validator
andprecompiledValidator
tests to the restore100%
coverage that was lost when updating to Jest 29- Updated
isValid()
for thevalidator
commenting out an if condition that was preventing100%
coverage, with a TODO to fix it later
- Updated
Dev / docs / playground
- Added the
@types/jest
as a globaldevDependency
so that developer tools properly recognize the jest function types