You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Using the Marshal function on a interface{} converts an integer to a float value despite the gopkg yamlv3 (gopkg.in/yaml.v3) does not:
Port somehow turns into a float:
Describe the bug
Using the Marshal function on a interface{} converts an integer to a float value despite the gopkg yamlv3 (gopkg.in/yaml.v3) does not:
Port somehow turns into a float:
file: Dockerfile
platform:
os: linux
os: linux
ingresses:
name: website
ports:
resources: {}
user: "101"
To Reproduce
yamlv3Bytes, err := yamlv3.Marshal(someInterface)
if err != nil {
return err
}
fmt.Println(string(yamlv3Bytes))
yamlBytes, err := yaml.Marshal(someInterface)
if err != nil {
return err
}
fmt.Println(string(yamlBytes))
Expected behavior
Port should remain an int like so:
file: Dockerfile
platform:
- arch: amd64
os: linux
- arch: arm64
os: linux
ingresses:
name: website
ports:
resources: {}
user: "101"
Screenshots
Version Variables
Additional context
If theres a mistake / missunderstanding on my side please let me know
The text was updated successfully, but these errors were encountered: