Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

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
    Configuration menu
    Copy the full SHA
    b4c8170 View commit details
    Browse the repository at this point in the history