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

Warn when multiple arguments were supplied to oneOf #244

Merged
merged 1 commit into from Feb 10, 2019
Merged

Warn when multiple arguments were supplied to oneOf #244

merged 1 commit into from Feb 10, 2019

Commits on Dec 18, 2018

  1. oneOf: improve warning when multiple arguments are supplied

    Adds a different warning message for multiple arguments supplied to oneOf. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]) and this should help developers identifying the error.
    wojtekmaj authored and ljharb committed Dec 18, 2018
    Copy the full SHA
    b4c8170 View commit details
    Browse the repository at this point in the history