1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-16 15:21:33 +00:00

Fix codegen bug

This commit is contained in:
Darren Shepherd
2017-12-11 21:09:34 -07:00
parent 3b84d4e435
commit e656484b26

View File

@@ -178,7 +178,7 @@ func (s *Schemas) importType(version *APIVersion, t reflect.Type, overrides ...r
schema.Mapper = mapper
s.AddSchema(*schema)
return schema, s.Err()
return s.Schema(&schema.Version, schema.ID), s.Err()
}
func jsonName(f reflect.StructField) string {