Refactored field processing in generator.
* Allows for specifying more customizations per field in each type. Previously, the switch clause didn't allow sub-types to be modified, but that became a problem with some of the more complex types. * Fixed several problematic fields in the Device resource * Removed the underscore separator from generated type names
This commit is contained in:
committed by
Paul Tyng
parent
fa5012f42a
commit
16c246525b
@@ -23,14 +23,14 @@ type Dashboard struct {
|
||||
NoDelete bool `json:"attr_no_delete,omitempty"`
|
||||
NoEdit bool `json:"attr_no_edit,omitempty"`
|
||||
|
||||
ControllerVersion string `json:"controller_version,omitempty"`
|
||||
Desc string `json:"desc,omitempty"`
|
||||
IsPublic bool `json:"is_public"`
|
||||
Modules []Dashboard_Modules `json:"modules,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
ControllerVersion string `json:"controller_version,omitempty"`
|
||||
Desc string `json:"desc,omitempty"`
|
||||
IsPublic bool `json:"is_public"`
|
||||
Modules []DashboardModules `json:"modules,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
}
|
||||
|
||||
type Dashboard_Modules struct {
|
||||
type DashboardModules struct {
|
||||
Config string `json:"config,omitempty"`
|
||||
ID string `json:"id"`
|
||||
ModuleID string `json:"module_id"`
|
||||
|
||||
Reference in New Issue
Block a user