1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-20 02:32:46 +00:00

precreate maps in schema

This commit is contained in:
Darren Shepherd
2018-01-16 12:52:53 -07:00
parent 04bbf46fc9
commit f7f989c4e2

View File

@@ -79,6 +79,8 @@ func (s *Schemas) newSchemaFromType(version *APIVersion, t reflect.Type, typeNam
CodeName: t.Name(),
PkgName: t.PkgPath(),
ResourceFields: map[string]Field{},
ResourceActions: map[string]Action{},
CollectionActions: map[string]Action{},
}
if err := s.readFields(schema, t); err != nil {