1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/api
Michael Crosby 44f4c95c0e Remove omitempty json tags from stucts
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>
2015-01-26 11:16:29 -08:00
..
client Zero out stats values in the cli 2015-01-21 15:33:53 -08:00
server Implement container stats collection in daemon 2015-01-20 20:21:46 -08:00
stats Remove omitempty json tags from stucts 2015-01-26 11:16:29 -08:00
api_unit_test.go fix tests 2014-03-31 18:11:53 +00:00
common.go bump API version 2015-01-22 01:15:34 +00:00
MAINTAINERS Adding self to various maintainers files. 2014-09-29 15:43:07 -07:00
README.md Update README.md 2014-07-04 18:21:13 +09:00

This directory contains code pertaining to the Docker API:

  • Used by the docker client when communicating with the docker daemon

  • Used by third party tools wishing to interface with the docker daemon