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:
@@ -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 == "" {
|
||||
|
Reference in New Issue
Block a user