@rjsf/antd
Advanced tools
Changelog
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
Changelog
5.6.2
post-versioning
that caused the 5.6.1 branch to not be publishableChangelog
5.6.0
undefined
in the SelectWidget
, fixing #3595Form
to use the new validatorDataMerge()
and toErrorList()
functions instead of the now deprecated schemaUtils.mergeValidatorData()
and schemaUtils.getValidator().toErrorList()
focusOnFirstError
(3590)MultiSchemaField
to handle the OpenAPI discriminator
extension on anyOf/oneOf
fields by passing it into getClosestMatchingOption()
if it exists, fixing #3512SchemaField
function to use getSchemaType
rather than schema.type
to set the proper class name.createErrorHandler()
, toErrorList()
, toErrorSchema()
and unwrapErrorHandler()
functions from the @rjsf/validator-ajv6
and @rjsf/validator-ajv8
implementations since they were identical
mergeValidationData()
function was deprecated in favor of the new validationDataMerge()
function that uses the refactored toErrorList()
functionROOT_SCHEMA_PREFIX
constant as wellValidatorType
and SchemaUtilsType
to deprecate the toErrorList()
and mergeValidationData()
functions, respectivelygetClosestMatchingOption()
and getFirstMatchingOption()
to pass the new discriminatorField
to the getMatchingOption()
functiongetMatchingOption()
to use discriminatorField
when it is present in the options
object properties to drill into the object to detect if that one field is validSchemaUtilsType
and the associated forward functions in createSchemaUtils
to add the new discriminatorField?: string
optional parametertoIdSchema()
function to use getSchemaType(schema) === 'object'
rather than schema.type === 'object'
to get the proper pathing for ids, fixing #2044AJV6Validator
in favor of using the new functions and constant from @rjsf/utils
AJV8Validator
in favor of using the new functions and constant from @rjsf/utils
utility-functions
documentation to describe the new refactored functions as well as deprecating the mergeValidationData()
functionplayground
to properly restore liveSettings
from shared links and added a switch for noHtml5Validation
in the live settings rather than having it set to true
always
Blank
example to help users easily paste their codeChangelog
5.5.1
Form
to include the top disabled
property in the ui:submitButtonOptions
so the submit button will be disabled when the whole form is disabled. Fixes #3264.$ref
s for the toIdSchema()
, toPathSchema()
and getDefaultFormState()
functions, fixing #3560getDefaultFormState()
to handle object-based additionalProperties
with defaults using formData
in addition to values contained in a default
object, fixing #2593withExactlyOneSubschema()
inside of retrieveSchema()
to use the isValid()
function rather than validateFormData()
when determining the one-of branchplayground
to make it cleaner
disabled
flag being passed into the Form
from the incorrect disable
spellingplayground
react-app-polyfill
package from playgound
. This ends IE11 supportChangelog
5.5.0
core
core
core
FileWidget
to pass false for required
once a value has been specified, fixing #3504ObjectField
to pass the errorSchema
to the ObjectFieldTemplate
to allow custom templates access to the errorscore
, adding snapshots tests for core
as wellcore
core
core
core
errorSchema
as an optional prop on ObjectFieldTemplateProps
playground
to use Typescript, including some refactoring of code to make that job easiercustom-templates
documentation to add errorSchema
to the props for ObjectFieldTemplate