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

pkg/config/validate.go: check CanInterface on subitems correctly #918

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

cfal
Copy link
Contributor

@cfal cfal commented Nov 5, 2024

in the switch statement, validate() is called on each value in the map, and each element in the slice - which then calls Interface in the checkInterface clause at the top of validate. we should be checking CanInterface on those items.

@cfal cfal requested a review from a team as a code owner November 5, 2024 20:06
@cfal cfal requested review from reductionista and removed request for a team November 5, 2024 20:06
@cfal cfal requested a review from jmank88 November 5, 2024 20:08
@cfal cfal force-pushed the check-can-interface branch from 82dbd42 to 12af781 Compare November 6, 2024 09:00
@cfal cfal merged commit c7bded1 into main Nov 6, 2024
10 of 11 checks passed
@cfal cfal deleted the check-can-interface branch November 6, 2024 14:20
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