Skip to content

Commit b43f96e

Browse files
authored
Merge pull request #6 from simplysoft/fix/serialize-false-boolean
fix: serialize false boolean
2 parents 8dd2670 + 5cb1a05 commit b43f96e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

api/node_type.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ type TermProxyOption struct {
3030

3131
type VNCShellOption struct {
3232
TermProxyOption
33-
Height int `json:"height,omitempty"`
34-
Websocket bool `json:"websocket,omitempty"`
35-
Width int `json:"width,omitempty"`
33+
Height int `json:"height,omitempty"`
34+
Websocket *bool `json:"websocket,omitempty"`
35+
Width int `json:"width,omitempty"`
3636
}
3737

3838
type VNCWebSocket struct {

api/storage_type.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ type Storage struct {
2222
type StorageCreateOptions struct {
2323
Storage string `json:"storage,omitempty"`
2424
StorageType string `json:"type,omitempty"`
25-
// allowed cotent types
25+
// allowed content types
2626
// NOTE: the value 'rootdir' is used for Containers, and value 'images' for VMs
2727
Content string `json:"content,omitempty"`
2828
ContentDirs string `json:"content-dirs,omitempty"`
2929
Format string `json:"format,omitempty"`
30-
Mkdir bool `json:"mkdir,omitempty"`
30+
Mkdir *bool `json:"mkdir,omitempty"`
3131
Path string `json:"path,omitempty"`
3232
}
3333

0 commit comments

Comments
 (0)