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 null additionally to any format #386

Merged
merged 3 commits into from May 1, 2021
Merged

Allow null additionally to any format #386

merged 3 commits into from May 1, 2021

Conversation

maxwrlr
Copy link
Contributor

@maxwrlr maxwrlr commented Apr 30, 2021

Hello convicts,

the current options do not allow null additionally to any format.
To get it working it was always necessary to create a new format around any existing format just to alloww null. What a mess!

This pull request tries to introduce the nullable option, which, if truthy, makes convict accept a configured null property before a dedicated format checking function would be called.
This change doesn't affect existing behaviour.

This could also be seen as a fix for #292 .

@madarche
Copy link
Collaborator

Thanks @maxwrlr, this seems very good. Could you additionally just update the README file in your MR please?

@maxwrlr
Copy link
Contributor Author

maxwrlr commented May 1, 2021

I adjusted the README. I hope what I wrote makes sense.

@madarche
Copy link
Collaborator

madarche commented May 1, 2021

@maxwrlr thanks for the addition of the doc. It's good now 👍‍‍

@madarche madarche merged commit 342fab6 into mozilla:master May 1, 2021
@madarche
Copy link
Collaborator

madarche commented May 3, 2021

@maxwrlr see #388

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.

None yet

2 participants