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

Allow to change additionalProperties to falsy values #2540

Merged

Conversation

verakruhliakova
Copy link
Contributor

@verakruhliakova verakruhliakova commented Sep 7, 2021

Reasons for making this change

fixes #2462

Changing of additionalProperties to any falsy value (false, 0, null) leads to its unexpected conversion to an empty string.

Similar change is proposed here - #2463, but it requires tests and the PR has been stall for a little while. Feel free to cancel current PR, if the other one gets finished faster.

Checklist

  • I'm updating documentation
  • I'm adding or updating code
    • I've added and/or updated tests
    • I've updated docs if needed
    • I've updated the changelog with a description of the PR
  • I'm adding a new feature
    • I've updated the playground with an example use of the feature

Copy link
Member

@epicfaace epicfaace left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @verakruhliakova !

@epicfaace
Copy link
Member

Can you update from the latest master code and then add a line to the changelog with a description of the bug fixed as mentioned in (https://github.com/rjsf-team/react-jsonschema-form/blob/master/PULL_REQUEST_TEMPLATE.md)?

@verakruhliakova
Copy link
Contributor Author

@epicfaace I've updated changelog and PR description. Thank you for reviewing!

Copy link
Member

@epicfaace epicfaace left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@epicfaace epicfaace merged commit 89d8e43 into rjsf-team:master Sep 28, 2021
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.

additionalProperties [number] doesn't allow 0 values
2 participants