Skip to content

Fix Type called on zero reflect.Value#1156

Merged
deankarn merged 1 commit intogo-playground:masterfrom
MysteriousPotato:main
Aug 30, 2023
Merged

Fix Type called on zero reflect.Value#1156
deankarn merged 1 commit intogo-playground:masterfrom
MysteriousPotato:main

Conversation

@MysteriousPotato
Copy link
Copy Markdown
Contributor

@MysteriousPotato MysteriousPotato commented Aug 30, 2023

Fixes Or Enhances

#1155

Simply added back the check for invalid reflect types before calling Type on reflect.Value.

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

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

@go-playground/validator-maintainers

also added tests coverage for this case
@MysteriousPotato MysteriousPotato requested a review from a team as a code owner August 30, 2023 02:58
@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 73.849% (+0.006%) from 73.843% when pulling 82faf77 on MysteriousPotato:main into 1b40ba0 on go-playground:master.

@MysteriousPotato MysteriousPotato marked this pull request as draft August 30, 2023 03:29
@deankarn deankarn marked this pull request as ready for review August 30, 2023 04:59
@deankarn deankarn merged commit 75eeb3f into go-playground:master Aug 30, 2023
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