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

Make values parameter in OneOf to be variadic #12

Merged
merged 2 commits into from
Feb 27, 2024
Merged

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
4 checks passed
@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.

2 participants