5.19.4
Security fix
The XSS fix in this release could potentially cause issues if you were using the translateString feature to render HTML. Switching to Markdown will solve your problems.
@rjsf/core
- Fix XSS when rendering schema validation errors #4254
- NOTE: This will have potential consequences if you are using the translateString feature and are trying to render HTML. Switching to Markdown will solve your problems.
@rjsf/utils
- Updated the
ValidatorTypeinterface to add an optionalreset?: () => voidprop that can be implemented to reset a validator back to initial constructed state- Updated the
ParserValidatorto provide areset()function that clears the schema map
- Updated the
- Also updated the default translatable string to use
Markdownrather than HTML tags since we now render them withMarkdown
@rjsf/validator-ajv8
- Updated the
AJV8Validatorto implement thereset()function to remove cached schemas in theajvinstance
Dev / docs / playground
- Updated the
Validatordropdown to addAJV8 (discriminator)which sets the AJV validator discriminator option totrueto support testing schemas with that option in them