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 time.Duration parsing for int param #678

Merged
merged 1 commit into from
Oct 17, 2020
Merged

Fix time.Duration parsing for int param #678

merged 1 commit into from
Oct 17, 2020

Conversation

deankarn
Copy link
Contributor

@deankarn deankarn commented Oct 17, 2020

Fixes Or Enhances # .

This fixes an issue where if the param of a time.Durtion type is specified
as an integer, denoting nanosecond precision, instead of time duration
string the validation would panic.

the fixes ensures it falls back to the previous expected behaviour.

issue introduced in #642

Make sure that you've checked the boxes below before you submit PR:

  • Tests exist or have been written that cover this particular change.

This fixes an issue where if the param of a time.Durtion type is specified
as an integer, denoting nanosecond precision, instead of time duration
string the validation would panic.

the fixes ensures it falls back to the previous expected behaviour.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.006%) to 76.07% when pulling 6b11ad6 on fix-duration into d6b17fd on master.

@deankarn deankarn merged commit 456221b into master Oct 17, 2020
@deankarn deankarn deleted the fix-duration branch October 17, 2020 15:49
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.

None yet

2 participants