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

Accept functions in validate_date/2 #105

Conversation

joeyates
Copy link
Contributor

@joeyates joeyates commented Aug 1, 2024

This PR makes it possible to make dynamic comparisons in validate_date/2.

For example, it allows checking that start_date is :before end_date.

@joeyates
Copy link
Contributor Author

joeyates commented Aug 1, 2024

The doctests fail on Elixir < 1.16 due to Map key ordering issues. I'll migrate those doctests to tests.

@joeyates joeyates closed this Aug 1, 2024
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.

1 participant