Skip to content

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