3 new features
- Added
experimental_defaultFormStateBehavior
prop toForm
to support alternate default form state behaviors - Added support for precompiled schemas in
validator-ajv8
- Added support for
additionalProperties
to fluent-ui theme while upgrading support to version 8 (backwards compatible with 7)
@rjsf/antd
- Fix #3608 by ensuring the root field is always wrapped in Form.Item
- Fix #3594 by removing the duplicate title for
SelectWidget
and description forCheckboxWidget
@rjsf/core
- Updated the
MultiSchemaField
to use the newgetDiscriminatorFieldFromSchema()
API - Added new
experimental_defaultFormStateBehavior
prop toForm
- Fixed regression #3650 in
FileWidget
to again support adding multiple files to arrays
@rjsf/fluent-ui
- Added support for
additionalProperties
to fluent-ui theme, fixing #2777. - Upgraded to
8.x
version of@fluentui/react
maintaining backwards compatibility to version 7, fixing #3463
@rjsf/utils
- Added two new APIs
getDiscriminatorFieldFromSchema()
(a refactor of code fromMultiSchemaField
) andhashForSchema()
- Updated
getDefaultFormState()
andtoPathSchema()
to usegetDiscriminatorFieldFromSchema()
to provide a discriminator field togetClosestMatchingOption()
calls.
- Updated
- Refactored the
retrieveSchema()
internal API functions to support implementing an internalschemaParser()
API for use in precompiling schemas, in support of #3543 - Fixed
toPathSchema()
to handleproperties
in an object along withanyOf
/oneOf
, fixing #3628 and #1628 - Refactored optional parameters for
computeDefaults()
into destructured props object to reduce clutter when only specifying later of the optional argument, fixing #3602 - Fixed
computeDefaults()
to handle$ref
in an object along withanyOf
/oneOf
, fixing #3633
@rjsf/validator-ajv8
- Added two new APIs
compileSchemaValidators()
andcreatePrecompiledValidator()
implemented to support using precompiled validators build with AJV 8, fixing #3543
Dev / docs / playground
- Added documentation to
custom-templates
describing how to extend theBaseInputTemplate
- Added minItems behavior for array field live setting, fixing #3602
- Upgraded playground to
8.x
version of@fluentui/react
, fixing #3463 - Added documentation to
validation
describing the new precompiled validators feature - Added new
validator-ajv8.md
documentation to theapi-reference
directory as well as putting it into thesidebar.js