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
The YAML encoder/decoder expects field names to be all-lowercase by default, unlike the JSON encoder/decoder which preserves camelCasing. Because we have strict decoding enabled, this causes failures when camelCased fields are submitted as part of a YAML API request-- the YAML decoder does not recognize them as matching the names of the Go struct's fields. To fix this, we need to explicitly set yaml field tags on the Go structs with the proper casing.
The text was updated successfully, but these errors were encountered:
The YAML encoder/decoder expects field names to be all-lowercase by default, unlike the JSON encoder/decoder which preserves camelCasing. Because we have strict decoding enabled, this causes failures when camelCased fields are submitted as part of a YAML API request-- the YAML decoder does not recognize them as matching the names of the Go struct's fields. To fix this, we need to explicitly set
yaml
field tags on the Go structs with the proper casing.The text was updated successfully, but these errors were encountered: