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 bug for TLSVersion.MarshalYAML #406

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

StevenYCChou
Copy link

Signed-off-by: Yen-Cheng Chou 3055688+StevenYCChou@users.noreply.github.com

Signed-off-by: Yen-Cheng Chou <3055688+StevenYCChou@users.noreply.github.com>
@StevenYCChou
Copy link
Author

@roidelapluie PTAL.

Copy link
Member

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While there's a bug, I'm not sure that the fix is correct. I believe that MarshalJSON() needs to be changed to a value receiver function to work properly.
I've experiment a bit with the Go playground:
https://go.dev/play/p/P9nFVvIu-Mb

@roidelapluie
Copy link
Member

While there's a bug, I'm not sure that the fix is correct. I believe that MarshalJSON() needs to be changed to a value receiver function to work properly. I've experiment a bit with the Go playground: https://go.dev/play/p/P9nFVvIu-Mb

I agree

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

3 participants