-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: rollback isValid()
in retrieveSchema()
to validateFormData()
#4418
base: main
Are you sure you want to change the base?
Conversation
…retrieveSchema() (rjsf-team#3575)" This reverts commit ff46301.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. One question and a small change to the CHANGELOG.md
and you are good to go
@@ -218,6 +218,7 @@ describeRepeated('Form common', (createFormComponent) => { | |||
|
|||
it('should work with oneOf', function () { | |||
const schema = { | |||
$schema: 'http://json-schema.org/draft-06/schema#', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a necessary part of the fix? Or were you just testing something?
@@ -25,6 +25,7 @@ should change the heading of the (upcoming) version to include a major version b | |||
## @rjsf/utils | |||
|
|||
- Short-circuit `File` and `Date` constructor access in isObject to optimize performance in scenarios where `globalThis` is a `Proxy` that incurs overhead for each class constructor access ([#4413](https://github.com/rjsf-team/react-jsonschema-form/pull/4413)). Fixes [#4409](https://github.com/rjsf-team/react-jsonschema-form/issues/4409) | |||
- Rollback `isValid()` in `retrieveSchema()` to `validateFormData()` to prevent a bug with empty enums blocking dependencies ([#4418](https://github.com/rjsf-team/react-jsonschema-form/pull/4418)). Fixes [#4357](https://github.com/rjsf-team/react-jsonschema-form/issues/4357) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we've released 5.23.2
already and are currently working on 5.24.0
, can you move this to there?
@cewald It looks like something in the utils tests are breaking. Can you please take a look... Also there are a few questions/concerns to address |
Reasons for making this change
fixes #4357
This reverts commit ff46301
Checklist
npx nx run-many --target=build --exclude=@rjsf/docs && npm run test:update
to update snapshots, if needed.