@rjsf/validator-ajv6
Advanced tools
Changelog
5.20.1
5.20.x
due to types and API changes in @rjsf/utils
Changelog
5.20.0
ArrayField
, BooleanField
and StringField
to call optionsList()
with the additional UiSchema
parameter, fixing #4215 and #4260WidgetProps
type to add es?: ErrorSchema<T>, id?: string
to the params of the onChange
handler functionUIOptionsBaseType
to add the new enumNames
prop to support an alternate way to provide labels for enum
s in a schema, fixing #4215optionsList()
to take an optional uiSchema
that is used to extract alternate labels for enum
s or oneOf
/anyOf
in a schema, fixing #4215 and #4260
optionsList()
were expanded from <S extends StrictRJSFSchema = RJSFSchema>
to <S extends StrictRJSFSchema = RJSFSchema, T = any, F extends FormContextType = any>
to support the UiSchema
.custom-widget-fields.md
to add documentation for how to raise errors from a custom widget or fieldChangelog
5.19.4
ValidatorType
interface to add an optional reset?: () => void
prop that can be implemented to reset a validator back to initial constructed state
ParserValidator
to provide a reset()
function that clears the schema mapMarkdown
rather than HTML tags since we now render them with Markdown
AJV8Validator
to implement the reset()
function to remove cached schemas in the ajv
instanceValidator
dropdown to add AJV8 (discriminator)
which sets the AJV validator discriminator option to true
to support testing schemas with that option in themChangelog
5.19.3
Changelog
5.19.1
5.19.x
due to use of new API in 5.19.0
Changelog
5.19.0
AltDateWidget
to use the new dateRangeOptions()
function in utils
to support relative Years and reversing the order of the Year choicesAltDateWidget
to use the new dateRangeOptions()
function in utils
to support relative Years and reversing the order of the Year choicesreadOnly
from a JSON Schema was not applied in SchemaField (#4236)AltDateWidget
to use the new dateRangeOptions()
function in utils
to support relative Years and reversing the order of the Year choicesdateRangeOptions()
function to implement relative Years in (via negative ranges) and reversing the order of the Year choicesdateRangeOptions()
function as well as showing examples of using relative Years and reversed Year orderingChangelog
5.18.5
target
in onFocus
and onBlur
handlerstarget
in onFocus
and onBlur
handlerstarget
in onFocus
and onBlur
handlerstarget
in onFocus
and onBlur
handlersdefault
values in additionalProperties
in #4199, fixing #3195target
in onFocus
and onBlur
handlerstarget
in onFocus
and onBlur
handlerstarget
in onFocus
and onBlur
handlerstarget
in onFocus
and onBlur
handlerstarget
in onFocus
and onBlur
handlers