Skip to content

Commit

Permalink
Merge pull request #147 from Jougan-0/addMissingCheck
Browse files Browse the repository at this point in the history
add missing check w/signoff
  • Loading branch information
Mohd Uzair authored Aug 23, 2024
2 parents 3d7a6fa + de7ffca commit 3f1983e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions models/v1beta1/component/component_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ func (c *ComponentDefinition) Create(db *database.Handler, hostID uuid.UUID) (uu
}

if !utils.IsSchemaEmpty(c.Component.Schema) {
if c.Metadata.AdditionalProperties == nil {
c.Metadata.AdditionalProperties = make(map[string]interface{})
}
c.Metadata.AdditionalProperties["hasInvalidSchema"] = true
}

Expand Down

0 comments on commit 3f1983e

Please sign in to comment.