Skip to content
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

Adding properties should work when additionalProperties is true #3181

Merged
merged 5 commits into from
Oct 6, 2022

Conversation

nickgros
Copy link
Contributor

@nickgros nickgros commented Oct 5, 2022

Fixes #3179

Conversion of ObjectField to TypeScript caused a regression where additionalProperties: true was not properly evaluated when adding a property.

  • Change ObjectField logic to handle additionalProperties: true.
  • Add tests to validate some of the logic in handleAddClick, including the regression

- Changes in v5 caused a regression where `additionalProperties: true` was not properly evaluated.
- Change ObjectField logic to handle that case.
- Add tests to validate the logic in handleAddClick, including the regression
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Heath C <51679588+heath-freenome@users.noreply.github.com>
@heath-freenome
Copy link
Member

heath-freenome commented Oct 6, 2022 via email

@nickgros
Copy link
Contributor Author

nickgros commented Oct 6, 2022

@heath-freenome Actions went down so it never created a job to restart, so I couldn't figure out how to do it.

@nickgros nickgros merged commit e5ac1c5 into rjsf-team:main Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clicking add button when additionalProperties: true doesn't create a new property
2 participants