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

value with !!int64 tag becomes nil without error #262

Closed
vvakame opened this issue Oct 28, 2021 · 1 comment · Fixed by #527
Closed

value with !!int64 tag becomes nil without error #262

vvakame opened this issue Oct 28, 2021 · 1 comment · Fixed by #527
Labels
bug Something isn't working parser

Comments

@vvakame
Copy link

vvakame commented Oct 28, 2021

https://play.golang.org/p/ecNPtvSD1U-

variables := make(map[string]interface{})
err := yaml.Unmarshal([]byte("v: !!int64 1"), &variables)
if err != nil {
	panic(err)
}
fmt.Println("%#v", variables)

expected
become error. because int64 is not defined on yaml spec. https://yaml.org/spec/1.2.2/#10213-integer

actual
ignored.

@goccy goccy added bug Something isn't working parser labels Nov 12, 2024
@goccy
Copy link
Owner

goccy commented Nov 12, 2024

Thank you for your reporting ! Sorry for the late reply, but I'll fix this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working parser
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants