RJSF utility functions, constants and types
In version 5, the utility functions from @rjsf/core/utils
were refactored into their own library called @rjsf/utils
.
These utility functions are separated into two distinct groups.
The first, larger, group are the functions that do NOT require a ValidatorType
interface be provided as one of their parameters.
The second, smaller, group are the functions that DO require a ValidatorType
interface be provided as a parameter.
There is also a helper function used to create a SchemaUtilsType
implementation from a ValidatorType
implementation and rootSchema
object.
Constants
The @rjsf/utils
package exports a set of constants that represent all the keys into various elements of a RJSFSchema or UiSchema that are used by the various utility functions.
In addition to those keys, there is the special ADDITIONAL_PROPERTY_FLAG
flag that is added to a schema under certain conditions by the retrieveSchema()
utility.
These constants can be found on GitHub here.
Types
Additionally, the Typescript types used by the utility functions represent nearly all the types used by RJSF.
Those types are exported for use by @rjsf/core
and all the themes, as well as any customizations you may build.
These types can be found on GitHub here.