mirror of
https://github.com/docker/docs.git
synced 2026-03-27 22:38:54 +07:00
When unmarshaling the json response from the API in languages to a dynamic object having the omitempty field tag on types such as float64 case the key to be omitted on 0.0 values. Various langages will interpret this as a null when 0.0 is the actual value. This patch removes the omitempty tags on fields that are not structs where they can be safely omited. Signed-off-by: Michael Crosby <crosbymichael@gmail.com>