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

fix: param date/time parsing, better tests/coverage #118

Merged
merged 1 commit into from
Sep 1, 2023
Merged

Conversation

danielgtaylor
Copy link
Owner

This PR adds some additional tests and corrects an issue with parameter date/time parsing and validation. The custom timeFormat of 2006-01-02 and 15:04:05 are also correctly identified as JSON schema date and time now as well, so additional validation is possible.

@danielgtaylor danielgtaylor merged commit ed0a877 into main Sep 1, 2023
1 check passed
@danielgtaylor danielgtaylor deleted the time-fix branch September 1, 2023 19:39
@codecov
Copy link

codecov bot commented Sep 1, 2023

Codecov Report

Patch coverage is 50.00% of modified lines.

Files Changed Coverage
huma.go 50.00%
schema.go 50.00%

📢 Thoughts on this report? Let us know!.

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