Skip to content

Fix invalid mfa validation if value was nil - #149

Merged
whatyouhide merged 1 commit into
dashbitco:mainfrom
pnezis:mfa-nil
Aug 1, 2026
Merged

whatyouhide merged 1 commit into
dashbitco:mainfrom
pnezis:mfa-nil

Conversation

@pnezis

@pnezis pnezis commented Mar 11, 2026

Copy link
Copy Markdown
Contributor
iex(1)> schema = [foo: [type: :mfa]]
[foo: [type: :mfa]]
iex(2)> NimbleOptions.validate([foo: nil], schema)
{:ok, [foo: nil]}

@whatyouhide

Copy link
Copy Markdown
Collaborator

I’m surprised that that specific check was there! Have you dug through the blame here?

@pnezis

pnezis commented Mar 11, 2026

Copy link
Copy Markdown
Contributor Author

it's there since the first commit :-)

0ed1d7a#diff-7fb09bff37767b08039f2861a5b0deb150b2a95f29e41746ae719196f9880e70

@whatyouhide

Copy link
Copy Markdown
Collaborator

@josevalim any idea? I’m good with this change to be clear, just want to make sure we're not breaking something or missing something.

@whatyouhide
whatyouhide merged commit 7f0f259 into dashbitco:main Aug 1, 2026
0 of 2 checks passed
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