Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jvcoutinho
Copy link
Owner

@jvcoutinho jvcoutinho commented Feb 27, 2024

This PR alters the signature of validate.OneOf function so that its second parameter, values, becomes a variadic parameter instead of a flat slice type.

This aims to improve the experience of restraining values.

@jvcoutinho jvcoutinho self-assigned this Feb 27, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (0889409) to head (427b0ca).

❗ Current head 427b0ca differs from pull request most recent head 97976bf. Consider uploading reports for the commit 97976bf to get more accurate results

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #12   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           25        25           
  Lines          963       963           
=========================================
  Hits           963       963           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jvcoutinho jvcoutinho merged commit 1b71356 into main Feb 27, 2024
@jvcoutinho jvcoutinho deleted the one-of-variadic branch February 27, 2024 02:41
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.

3 participants