1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-17 23:59:36 +00:00

Changes to generator for deepcopygen

This commit is contained in:
Darren Shepherd
2017-11-11 17:07:09 -07:00
parent f9b15a5e39
commit 591b663b2d
6 changed files with 80 additions and 7 deletions

View File

@@ -32,6 +32,13 @@ func (s *Schemas) Err() error {
return NewErrors(s.errors)
}
func (s *Schemas) AddSchemas(schema *Schemas) *Schemas {
for _, schema := range schema.Schemas() {
s.AddSchema(schema)
}
return s
}
func (s *Schemas) AddSchema(schema *Schema) *Schemas {
schema.Type = "schema"
if schema.ID == "" {