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

Fix regression in required validator #77

Merged
merged 1 commit into from
Sep 28, 2021
Merged

Fix regression in required validator #77

merged 1 commit into from
Sep 28, 2021

Conversation

ClaytonPassmore
Copy link
Contributor

Description

The 1.0 release introduced a behaviour change in required values. Prior
to 1.0, empty objects (e.g. {}) were acceptable values for required
parameters. This commit re-introduces that behaviour.

The 1.0 release introduced a behaviour change in required values. Prior
to 1.0, empty objects (e.g. `{}`) were acceptable values for required
parameters. This commit re-introduces that behaviour.
Copy link
Collaborator

@iMacTia iMacTia left a comment

Choose a reason for hiding this comment

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

This is so hard to read now 😂, but it actually makes sense!
The problem here was that present? considers {} invalid.
Thanks for fixing this @ClaytonPassmore 👏

@iMacTia iMacTia merged commit 911b425 into nicolasblanco:master Sep 28, 2021
@ClaytonPassmore ClaytonPassmore deleted the fix/require-validation branch September 28, 2021 12:58
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.

2 participants