summaryrefslogtreecommitdiff
path: root/api_changes.md
diff options
context:
space:
mode:
authorqiaolei <qiaolei2@huawei.com>2015-09-19 09:32:17 +0800
committerqiaolei <qiaolei2@huawei.com>2015-09-19 09:32:17 +0800
commit6d04d610747b27e3fd27ee0c240648024eafe2da (patch)
treecd747b5b16a6e4db0229fc3107a773b1ea372c0c /api_changes.md
parentc0e44162bc75fe062e183b27fccc578e837c19b2 (diff)
Change 'params' to 'extraParams' to keep align with naming conventions
Go field names must be CamelCase. JSON field names must be camelCase. Other than capitalization of the initial letter, the two should almost always match. No underscores nor dashes in either Please refer 'https://github.com/kubernetes/kubernetes/blob/master/docs/devel/api-conventions.md#naming-conventions'
Diffstat (limited to 'api_changes.md')
-rw-r--r--api_changes.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/api_changes.md b/api_changes.md
index e0a65fe0..a7c4c3c8 100644
--- a/api_changes.md
+++ b/api_changes.md
@@ -157,7 +157,7 @@ type Frobber struct {
Height int `json:"height"`
Width int `json:"width"`
Param string `json:"param"` // the first param
- ExtraParams []string `json:"params"` // additional params
+ ExtraParams []string `json:"extraParams"` // additional params
}
```