specs-go/config: Use a pointer for Process.ConsoleSize
Avoid injecting: "consoleSize":{"height":0,"width":0} when serializing with Go's stock JSON serializer. Using a pointer for this optional struct property works around [1]. [1]: https://github.com/golang/go/issues/11939 Signed-off-by: W. Trevor King <wking@tremily.us>
This commit is contained in:
parent
5a39b39397
commit
d42b44b8ff
|
@ -34,7 +34,7 @@ type Process struct {
|
|||
// Terminal creates an interactive terminal for the container.
|
||||
Terminal bool `json:"terminal,omitempty"`
|
||||
// ConsoleSize specifies the size of the console.
|
||||
ConsoleSize Box `json:"consoleSize,omitempty"`
|
||||
ConsoleSize *Box `json:"consoleSize,omitempty"`
|
||||
// User specifies user information for the process.
|
||||
User User `json:"user"`
|
||||
// Args specifies the binary and arguments for the application to execute.
|
||||
|
|
Loading…
Reference in New Issue