mirror of
https://github.com/rancher/norman.git
synced 2025-09-20 18:49:12 +00:00
precreate maps in schema
This commit is contained in:
@@ -79,6 +79,8 @@ func (s *Schemas) newSchemaFromType(version *APIVersion, t reflect.Type, typeNam
|
|||||||
CodeName: t.Name(),
|
CodeName: t.Name(),
|
||||||
PkgName: t.PkgPath(),
|
PkgName: t.PkgPath(),
|
||||||
ResourceFields: map[string]Field{},
|
ResourceFields: map[string]Field{},
|
||||||
|
ResourceActions: map[string]Action{},
|
||||||
|
CollectionActions: map[string]Action{},
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := s.readFields(schema, t); err != nil {
|
if err := s.readFields(schema, t); err != nil {
|
||||||
|
Reference in New Issue
Block a user