@rjsf/validator-ajv6
Advanced tools
Changelog
5.0.0-beta.11
FieldTemplate
to no longer render additional, unnecessary white space for fields that have empty help
and extra
information, fixing #3147ArrayFieldTemplate
to always render ArrayFieldDescriptionTemplate
since that template deals with the optional description
schema
into the ArrayFieldDescriptionTemplate
, ArrayFieldTitleTemplate
, DescriptionFieldTemplate
and TitleFieldTemplate
, fixing #3176FieldTemplate
instead of having the widgets implementing the label, fixing #2007ArrayFieldTemplate
to always render ArrayFieldDescriptionTemplate
since that template deals with the optional description
schema
into the ArrayFieldDescriptionTemplate
, ArrayFieldTitleTemplate
, DescriptionFieldTemplate
and TitleFieldTemplate
, fixing #3176chakra-react-select
v4, fixing #3152SelectWidget
use Select
from chakra-react-select
for both single- and multiple-choice selectSelectWidget
multiple-choice select display label rather than value for selected itemsArrayFieldTemplate
to always render ArrayFieldDescriptionTemplate
since that template deals with the optional description
schema
into the ArrayFieldDescriptionTemplate
, ArrayFieldTitleTemplate
, DescriptionFieldTemplate
and TitleFieldTemplate
, fixing #3176Form.onChange
to optionally return the id
of the field that caused the change, fixing #2768additionalProperties
was true
(#3719).ArrayFieldDescriptionTemplate
and ArrayFieldTitleTemplate
to not render content when ui:label
is false, fixing #2535ArrayFieldTemplate
to always render ArrayFieldDescriptionTemplate
since that template deals with the optional description
schema
into the ArrayFieldDescriptionTemplate
, ArrayFieldTitleTemplate
, DescriptionFieldTemplate
and TitleFieldTemplate
, fixing #3176ArrayFieldTemplate
to always render ArrayFieldDescriptionTemplate
since that template deals with the optional description
schema
into the ArrayFieldDescriptionTemplate
, ArrayFieldTitleTemplate
, DescriptionFieldTemplate
and TitleFieldTemplate
, fixing #3176ArrayFieldTemplate
to always render ArrayFieldDescriptionTemplate
since that template deals with the optional description
schema
into the ArrayFieldDescriptionTemplate
, ArrayFieldTitleTemplate
, DescriptionFieldTemplate
and TitleFieldTemplate
, fixing #3176ArrayFieldTemplate
to always render ArrayFieldDescriptionTemplate
since that template deals with the optional description
schema
into the ArrayFieldDescriptionTemplate
, ArrayFieldTitleTemplate
, DescriptionFieldTemplate
and TitleFieldTemplate
, fixing #3176ArrayFieldTemplate
to always render ArrayFieldDescriptionTemplate
since that template deals with the optional description
schema
into the ArrayFieldDescriptionTemplate
, ArrayFieldTitleTemplate
, DescriptionFieldTemplate
and TitleFieldTemplate
, fixing #3176onChange
prop on FieldProps
and FieldTemplateProps
to add an optional id
parameter to the callback.DescriptionFieldProps
and TitleFieldProps
to add a new required schema
prop. Also updated the ArrayFieldDescriptionTemplate
and ArrayFieldTitleTemplate
to make description
and title
optional while pulling all the other props but id
from the associated type.id
of the field being changed on the onChange
handlerform-props.md
to describe the new id
parameter being returned by the Form.onChange
handlercustom-templates.md
to add the new schema
prop to the ArrayFieldDescriptionTemplate
, ArrayFieldTitleTemplate
, DescriptionFieldTemplate
and TitleFieldTemplate
documentationcontributing.md
to describe setting up the husky
precommit hooks for the first time git clone
of the repo; Also added guidance for developing on underpowered computers; Finally discussed code-coverage requirements for some packages.Changelog
5.0.0-beta.10
WrapIfAdditional
to WrapIfAdditionalTemplate
name
to the input
components that were missing it to support remix
CheckboxesWidget
and RadioWidget
to have unique id
s for each radio element by appending the option.value
, protecting against non-arraysantd
to Typescript, indirectly fixing (https://github.com/rjsf-team/react-jsonschema-form/issues/3123)WrapIfAdditional
to WrapIfAdditionalTemplate
name
to the input
components that were missing it to support remix
CheckboxWidgets
code to eliminate a ternary in favor of a simple inline={inline}
property since all the rest of the props were the sameCheckboxesWidget
and RadioWidget
to have unique id
s for each radio element by appending the option.value
, removing unnecessary casts to any
and protecting against non-arraysCheckboxesWidget
incorrectly rendered inner <form>
elements around each checkbox, fixing (https://github.com/rjsf-team/react-jsonschema-form/issues/2355)WrapIfAdditional
to WrapIfAdditionalTemplate
name
to the input
components that were missing it to support remix
CheckboxesWidget
and RadioWidget
to have unique id
s for each radio element by appending the option.value
, removing unnecessary casts to any
and protecting against non-arraysWrapIfAdditional
to WrapIfAdditionalTemplate
name
to the input
components that were missing it to support remix
CheckboxesWidget
and RadioWidget
to have unique id
s for each radio element by appending the option.value
validate()
method on Form
to make schemaUtils
an optional third parameter rather than a required first parameter, making the signature backwards compatible with what was provided in previous versions.WrapIfAdditionalTemplate
. additionalProperties
is currently not supported in @rjsf/fluent-ui
(See #2777).name
or id
(for those fluent components not supporting name) to the input
components that were missing it to support remix
DateTimeWidget
to properly use BaseInputTemplate
rather than TextWidget
CheckboxesWidget
and RadioWidget
to have unique id
s for each radio element by appending the option.value
, removing unnecessary casts and protecting against non-arrays, fixing (https://github.com/rjsf-team/react-jsonschema-form/issues/2138)RadioWidget
so that it supports read-only and disabled statesWrapIfAdditional
to WrapIfAdditionalTemplate
name
to the input
components that were missing it to support remix
CheckboxesWidget
and RadioWidget
to have unique id
s for each radio element by appending the option.value
, removing unnecessary casts to any
and protecting against non-arraysWrapIfAdditional
to WrapIfAdditionalTemplate
name
to the input
components that were missing it to support remix
CheckboxesWidget
and RadioWidget
to have unique id
s for each radio element by appending the option.value
, removing unnecessary casts to any
and protecting against non-arraysWrapIfAdditional
to WrapIfAdditionalTemplate
ArrayFieldTemplate
and ObjectFieldTemplate
's AddButton
to show the non-labeled version. (https://github.com/rjsf-team/react-jsonschema-form/pull/3142)name
to the input
components that were missing it to support remix
, including fixing incorrect name
s as id
s in some situationsCheckboxesWidget
and RadioWidget
to have unique id
s for each radio element by appending the option.value
, protecting against non-arrayssemantic-ui
to TypescriptWrapIfAdditionalTemplate
and WrapIfAdditionalTemplateProps
to simplify theming and make it easier to override Field behavior for schemas with additionalProperties
.Changelog
5.0.0-beta.9
uiSchema
appropriately to all of the IconButton
s, ArrayFieldItemTemplate
and WrapIfAdditional
components, fixing (https://github.com/rjsf-team/react-jsonschema-form/issues/3130)FieldErrorTemplate
to remove the explicit typing of the error
to string to support the two optionsTheme
to use the renamed ThemeProps
from @rjsf/core
uiSchema
appropriately to all of the IconButton
s, ArrayFieldItemTemplate
and WrapIfAdditional
components, fixing (https://github.com/rjsf-team/react-jsonschema-form/issues/3130)Theme
to use the renamed ThemeProps
from @rjsf/core
uiSchema
appropriately to all of the IconButton
s, ArrayFieldItemTemplate
and WrapIfAdditional
components, fixing (https://github.com/rjsf-team/react-jsonschema-form/issues/3130)FieldErrorTemplate
to remove the explicit typing of the error
to string to support the two optionsvalidateForm()
method on Form
, fixing (https://github.com/rjsf-team/react-jsonschema-form/issues/2755, https://github.com/rjsf-team/react-jsonschema-form/issues/2552, https://github.com/rjsf-team/react-jsonschema-form/issues/2381, https://github.com/rjsf-team/react-jsonschema-form/issues/2343, https://github.com/rjsf-team/react-jsonschema-form/issues/1006, https://github.com/rjsf-team/react-jsonschema-form/issues/246)WithThemeProps
to ThemeProps
to prevent another breaking-change by returning the type back to the name it had in version 4uiSchema
appropriately to all of the IconButton
s, ArrayFieldItemTemplate
and WrapIfAdditional
components, fixing (https://github.com/rjsf-team/react-jsonschema-form/issues/3130)ArrayField
to fall back to SchemaField
if ArraySchemaField
is not defined, fixing (https://github.com/rjsf-team/react-jsonschema-form/issues/3131)Theme
to use the renamed ThemeProps
from @rjsf/core
uiSchema
appropriately to all of the IconButton
s and ArrayFieldItemTemplate
components, fixing (https://github.com/rjsf-team/react-jsonschema-form/issues/3130)Theme
to use the renamed ThemeProps
from @rjsf/core
uiSchema
appropriately to all of the IconButton
s, ArrayFieldItemTemplate
and WrapIfAdditional
components, fixing (https://github.com/rjsf-team/react-jsonschema-form/issues/3130)Theme
to use the renamed ThemeProps
from @rjsf/core
uiSchema
appropriately to all of the IconButton
s, ArrayFieldItemTemplate
and WrapIfAdditional
components, fixing (https://github.com/rjsf-team/react-jsonschema-form/issues/3130)FieldErrorTemplate
to use the children
variation of the List.Item
that supports ReactElementuiSchema
appropriately to all of the IconButton
s, ArrayFieldItemTemplate
and WrapIfAdditional
components, fixing (https://github.com/rjsf-team/react-jsonschema-form/issues/3130)FieldErrorProps
type to make it support an array of string and ReactElementIconButtonProps
type to add uiSchema
, adding the <T = any, F = any>
generics to it and the associated ButtonTemplates
in TemplatesType
AND added uiSchema
to ArrayFieldTemplateItemType
as well, fixing (https://github.com/rjsf-team/react-jsonschema-form/issues/3130)custom-templates.md
file to add the missing asterisk to the new FieldErrorTemplate
and FieldHelpTemplate
validation.md
documentation to describe how to programmatically validate a formchakra-ui
custom uiSchema
documentation to make it clear they work on a per-field basis, fixing (https://github.com/rjsf-team/react-jsonschema-form/issues/2865)formElement
breaking-change documentation to the 5.x upgrade guide.md
ArraySchemaField
to better represent the updated implementation, fixing (https://github.com/rjsf-team/react-jsonschema-form/issues/3131)Changelog
5.0.0-beta.8
Changelog
v5.0.0-beta.6
@rjsf/validator-ajv8
to the validate_test.js
file to ensure the validation works with both validator implementationsREADME.md
to correct the package name in several places to match the actual packageREADME.md
to remove references to ajv6 validator, adding link to the utility-functions.md
in the docsREADME.md
to correct the package name in several places to match the actual packagegetDefaultFormState()
so that oneOf and anyOf default values do not always use the first option when formData contains a better option, fixing (https://github.com/rjsf-team/react-jsonschema-form/issues/2183)README.md
to correct the package name in several places to match the actual packageLocalizer
function passed as a second parameter to customizeValidator()
, fixing (https://github.com/rjsf-team/react-jsonschema-form/pull/846, and https://github.com/rjsf-team/react-jsonschema-form/issues/1195)README.md
to correct the package name in several places to match the actual packageAJV8
and AJV8_es
to the list of available validators for the playground; Using the second one will translate error messages to spanish.null
in certain cases.Changelog
v5.0.0-beta.5
Changelog
v5.0.0-beta.4
devDependencies
for React to 17.x and use dts
to build and test the library (rather than tsdx
)Changelog
v5.0.0-beta.2
@rjsf/utils
library now that it is published on npmChangelog
v5.0.0-beta.1
@rjsf/utils
library functions and typestemplates
as part of the fix for https://github.com/rjsf-team/react-jsonschema-form/issues/2526
BaseInputTemplate
should fix (https://github.com/rjsf-team/react-jsonschema-form/issues/2926, https://github.com/rjsf-team/react-jsonschema-form/issues/2889, https://github.com/rjsf-team/react-jsonschema-form/issues/2875, https://github.com/rjsf-team/react-jsonschema-form/issues/2223)title
and description
consistent across themes, fixing (https://github.com/rjsf-team/react-jsonschema-form/issues/2481, https://github.com/rjsf-team/react-jsonschema-form/issues/2363, https://github.com/rjsf-team/react-jsonschema-form/issues/2219)package.json
and package-lock.json
files to be built and maintained by Node 16.utils.js
file from core
into independent functions.
types
from core
in utils
to better match the implementation across all themes
formData
change when liveOmit=true
when "additionalProperties: false" issue 1507 (https://github.com/rjsf-team/react-jsonschema-form/pull/2631)validator.js
file from core
into independent functions as well as a class that implements the new ValidatorType
interface.
ajv
instance.toErrorList()
was made so that it takes fieldPath: string[]
rather than fieldName='root'
as part of the fix to (https://github.com/rjsf-team/react-jsonschema-form/issues/1596)
errors
also now adds property
from the fieldPath
along with the proper path from the property
to the stack
message, making it consistent with the AJV errors.
stack
attribute would say root: error message
; now it says . error message
errors
when merged with custom validation, fixing (https://github.com/rjsf-team/react-jsonschema-form/issues/1596).ui:emptyValue
now works with selects (https://github.com/rjsf-team/react-jsonschema-form/issues/1041)utils.js
into the new @rjsf/utils
fixes (https://github.com/rjsf-team/react-jsonschema-form/issues/2719)ui:field
with anyOf or oneOf no longer rendered twice (#2890)anyOf
and oneOf
getting incorrect, potentially duplicate ids when combined with array (https://github.com/rjsf-team/react-jsonschema-form/issues/2197)formContext
is now passed properly to SchemaField
, fixes (https://github.com/rjsf-team/react-jsonschema-form/issues/2394, https://github.com/rjsf-team/react-jsonschema-form/issues/2274)ui:duplicateKeySuffixSeparator
to customize how duplicate object keys are renamed when using additionalProperties
.extraErrors
are now consistently appended onto the end of the schema validation-based errors
information that is returned via the onErrors()
callback when submit fails.
errors
during the merge process, fixing (https://github.com/rjsf-team/react-jsonschema-form/issues/1596).RadioWidget
to no longer use random numbers fixing (https://github.com/rjsf-team/react-jsonschema-form/issues/2461)onChange
handler in the new set of props if it changed, fixing (https://github.com/rjsf-team/react-jsonschema-form/issues/1708).onChange
when formData
is controlled prop, fixing (https://github.com/rjsf-team/react-jsonschema-form/issues/513),@rollup/plugin-replace
to replace antd/lib
and rc-picker/lib
with antd/es
and rc-picker/es
respectively, fixing (https://github.com/rjsf-team/react-jsonschema-form/issues/2962)withTheme
customizations should work properly now (https://github.com/rjsf-team/react-jsonschema-form/issues/2058)ArrayFieldTemplate
refactor seems to have fixed https://github.com/rjsf-team/react-jsonschema-form/issues/2775SelectField
(https://github.com/rjsf-team/react-jsonschema-form/issues/2616, https://github.com/rjsf-team/react-jsonschema-form/issues/2875)@rjsf/mui
) was split out of the theme for version 4 (i.e. @rjsf/material-ui
) to resolve the following issues:
inputType
in uiSchema (https://github.com/rjsf-team/react-jsonschema-form/issues/2057)
step
for number
type (https://github.com/rjsf-team/react-jsonschema-form/issues/2488)@rjsf/mui
) was split out of the theme for version 4 (i.e. @rjsf/material-ui
) to resolve the following issues:
inputType
in uiSchema (https://github.com/rjsf-team/react-jsonschema-form/issues/2057)
step
for number
type (https://github.com/rjsf-team/react-jsonschema-form/issues/2488)main
definition in semantic-ui
to fix (https://github.com/withastro/astro/issues/4357)ui:field
with anyOf
(#2890)