@rjsf/validator-ajv6
Advanced tools
Changelog
5.3.1
AltDateWidget
to remove an infinite loop caused by two conflicting effects by merging them with additional checking of original value
against the current value, fixing #3516getTestValidator()
and the schema.test.ts
file to help developersgetTestValidator()
and the schema.test.ts
file to help developersgetTestValidator()
and the schema.test.ts
file to help developersinternals
documentation to use a React ref in the example, fixing #3520contributing
documentation to describe the new development process needed for a Vite
playground, fixing #3478
package.json
files to remove npm start
in the subdirectories and change the root one to describe the new processsemantic-ui/uiSchema
documentation to switch the default for horizontalButtons
to be true per changes made in 5.3.0
Changelog
5.3.0
package.json
to properly add required dependencies explicitly which were installed implicitlyReset
function added for Programmatically Reset
action. Reset
function will reset form data and validation errors. Form data will set to default values.TimeWidget
that works for all themesInvalidObjectField
error in ObjectField
Form
, ArrayField
, ObjectField
and SchemaField
RadioWidget
's onChange return value.BaseInputTemplate
so that it shrinks a time
formatted inputBaseInputTemplate
so that it shrinks a time
formatted inputgetWidget()
to support the time
to TimeWidget
mappingTranslatableString
enums CopyButton
and InvalidObjectField
that localizes the information extracted from ObjectField
as markdownArrayFieldTemplateItemType
to add support for copying array itemsUIOptionsBaseType
to extract the addable
, orderable
, removable
, label
and duplicateKeySuffixSeparator
into a new GlobalUISchemaOptions
type that adds copyable
UIOptionsBaseType
from GlobalUISchemaOptions
UiSchema
added a new optional ui:globalOptions
prop of type GlobalUISchemaOptions
and a new UI_GLOBAL_OPTIONS_KEY
constantglobalUiOptions
object of type GlobalUISchemaOptions
in Registry
as well as CopyButton
in ButtonTemplates
getUiOptions()
and getDisplayLabel()
(and its SchemaUtilsType
counterpart) to take an optional GlobalUISchemaOptions
parameter that is used to include global options into the returned uiOptions
Programmatically Reset
button to clear states which are form data and validation errors.Date & time
example to show off the new TimeWidget
.custom-widgets-fields
and widgets
documentation to mention the new TimeWidget
and its support for the time
format.custom-templates
, internals
, uiSchema
, utility-functions
and arrays
for the new copy array feature as well as the global UI Schema options supportarrays
example to add examples for the new copyable
featureChangelog
5.2.1
BaseInputTemplate
to favor the special onChangeOverride
provided by the core
FileWidget
React
, switching imports to explicit ones after fixing linting rules to not require React
for JSXBaseInputTemplate
to favor the special onChangeOverride
provided by the core
FileWidget
, deleting the theme's FileWidget
, fixing #2095React
, switching imports to explicit ones after fixing linting rules to not require React
for JSXBaseInputTemplate
to favor the special onChangeOverride
provided by the core
FileWidget
React
, switching imports to explicit ones after fixing linting rules to not require React
for JSXname
is consistently passed to all Widgets
through the field components, fixing #1763FileWidget
to render the input using the BaseInputTemplate
passing a special onChangeOverride
function to deal with the file events, fixing #2095React
, switching imports to explicit ones after fixing linting rules to not require React
for JSXBaseInputTemplate
to favor the special onChangeOverride
provided by the core
FileWidget
React
, switching imports to explicit ones after fixing linting rules to not require React
for JSXBaseInputTemplate
to favor the special onChangeOverride
provided by the core
FileWidget
and to support automatically shrinking the label for the date
, datetime-local
and file
types
DateWidget
and DateTimeWidget
since they were only created to provide the label shrinking propertyReact
, switching imports to explicit ones after fixing linting rules to not require React
for JSXBaseInputTemplate
to favor the special onChangeOverride
provided by the core
FileWidget
and to support automatically shrinking the label for the date
, datetime-local
and file
types
DateWidget
and DateTimeWidget
since they were only created to provide the label shrinking propertyReact
, switching imports to explicit ones after fixing linting rules to not require React
for JSXBaseInputTemplate
to favor the special onChangeOverride
provided by the core
FileWidget
React
, switching imports to explicit ones after fixing linting rules to not require React
for JSXname
prop to the WidgetProps
type, fixing #1763dataURItoBlob()
to handle the exception thrown by atob()
when it is passed a malformed URL, returning an blob
that indicates the error in the type
propreplaceStringParameters()
to improve the replaceable parameters logic so that it works properly when a parameter also contains a replaceable parameter identifierReact
, switching imports to explicit ones after fixing linting rules to not require React
for JSXcustom-widgets-fields
documentation to ensure the new WidgetProps
name
prop is documentedChangelog
5.2.0
ErrorList
, IconButton
s, WrapIfAdditionalTemplate
and AltDateWidget
to use the new translateString()
function to support localizationAddButton
, ErrorList
, IconButton
s and WrapIfAdditionalTemplate
to use the new translateString()
function to support localizationAddButton
, ErrorList
, IconButton
s, WrapIfAdditionalTemplate
and AltDateWidget
to use the new translateString()
function to support localizationArrayField
, BooleanField
, MultiSchemaField
, ObjectField
, SchemaField
, AddButton
, IconButton
s, ErrorList
, WrapIfAdditionalTemplate
and AltDateWidget
and FileWidget
to use the new translateString()
function to support localization
Form
to take a new optional translateString
prop and getDefaultRegistry()
to set translateString
to englishStringTranslator()
AddButton
, ColorWidget
, ErrorList
, IconButton
s and UpDownWidget
to use the new translateString()
function to support localizationAddButton
, ErrorList
, IconButton
s and WrapIfAdditionalTemplate
to use the new translateString()
function to support localizationRangeWidget
to support 0
as range slider value, fixing #3458AddButton
, ErrorList
, IconButton
s and WrapIfAdditionalTemplate
to use the new translateString()
function to support localizationRangeWidget
to support 0
as range slider value, fixing #3458AddButton
, ErrorList
, IconButton
s and WrapIfAdditionalTemplate
to use the new translateString()
function to support localizationutility-functions
documentation for the enums
and englishStringTranslator()
& replaceStringParameters()
functionsform-props
documentation for the new, optional translateString
prop on Form
numbers
example to use a range slider with a valid negative and 0
valueChangelog
5.1.0
AltDateTimeWidget
in @rjsf/core
to add className="list-inline-item"
to the LI
tagsSelectWidget
to allow the proper display of the selected value, fixing #3422Form
to remove passing excludeObjectChildren
to getDefaultFormState()
, fixing #3424 and #675focusOnFirstError
, that if true, will cause the first field with an error to be focused on when a submit has errorscomputeDefaults()
to fix additionalProperties defaults not being propagated, fixing #2593
anyOf
/oneOf
lists by simply returning undefinedfocusOnFirstError
and the form-props
documentation for it as wellChangelog
5.0.2
idPrefix
, idSeparator
and rawErrors
optional props to FieldProps
since they were missingcustom-widgets-field
documentation for the new FieldProps
Changelog
5.0.1
peerDependencies
in all packages to remove the -beta.x
tags from the @rjsf/xxxx
packagesChangelog
5.0.0
CheckboxesWidget
, RadioWidget
and SelectWidget
to use indexes as values to support enumOptions
with object values, fixing #1494CheckboxesWidget
, RadioWidget
and SelectWidget
to use indexes as values to support enumOptions
with object values, fixing #1494CheckboxesWidget
, RadioWidget
and SelectWidget
to use indexes as values to support enumOptions
with object values, fixing #1494CheckboxesWidget
, RadioWidget
and SelectWidget
to use indexes as values to support enumOptions
with object values, fixing #1494CheckboxesWidget
, RadioWidget
and SelectWidget
to use indexes as values to support enumOptions
with object values, fixing #1494CheckboxesWidget
, RadioWidget
and SelectWidget
to use indexes as values to support enumOptions
with object values, fixing #1494CheckboxesWidget
, RadioWidget
and SelectWidget
to use indexes as values to support enumOptions
with object values, fixing #1494CheckboxesWidget
, RadioWidget
and SelectWidget
to use indexes as values to support enumOptions
with object values, fixing #1494enumOptionsIndexForValue()
, enumOptionsIsSelected()
, enumOptionsValueForIndex()
functions to support fixing #1494
enumOptionsDeselectValue()
, enumOptionsSelectValue()
and optionId()
to use indexes instead of valuesprocessSelectValue()
that was added in the beta and is no longer neededgetSchemaType()
to remove the inference of type from anyOf
/oneOf
, fixing #3412utility-functions
documentation for the new and updated methods mentioned above, as well as deleting the documentation for processSelectValue()
Enum Objects
example to highlight the use of indexes for enumOptions
5.x migration guide
to document the change from values to indexes for the enumOptions
based controls.Changelog
5.0.0-beta.20
schema.examples
to deduplicate when schema.default
exists in the examples, fixing #3393schema.examples
to deduplicate when schema.default
exists in the examples, fixing #3393schema.examples
to deduplicate when schema.default
exists in the examples, fixing #3393MultiSchemaField
to pass undefined
as the value to the widget when the selectedOption
is -1, supporting SelectWidget
implementations that allow the user to clear the selected value of the anyOf
/oneOf
field.Form
to support receiving an optional ref
prop.Form
to restore providing empty root level objects, fixing #3391schema.examples
to deduplicate when schema.default
exists in the examples, fixing #3393schema.examples
to deduplicate when schema.default
exists in the examples, fixing #3393schema.examples
to deduplicate when schema.default
exists in the examples, fixing #3393schema.examples
to deduplicate when schema.default
exists in the examples, fixing #3393schema.examples
to deduplicate when schema.default
exists in the examples, fixing #3393Changelog
5.0.0-beta.19
MultiSchemaField
to cache options with refs in state and to output better labels for options without them when a title is available in either the schema
or uiSchema
ui:fieldReplacesAnyOrOneOf
flag to the uiSchema
that when true will allow users to opt-out of the anyOf
/oneOf
wrapping of a custom fieldtoPathSchema()
to handle oneOf
/anyOf
by picking the closest option and generating the path for it, fixing #2262uiSchema
only flag ui:fieldReplacesAnyOrOneOf
that, if true allows the user to opt-out of the anyOf
/oneOf
wrapping of a custom fielduiSchema
documentation for ui:fieldReplacesAnyOrOneOf