diff --git a/pkg/entities/vulnerability/vulnerability.go b/pkg/entities/vulnerability/vulnerability.go index baea31f6..d4596034 100644 --- a/pkg/entities/vulnerability/vulnerability.go +++ b/pkg/entities/vulnerability/vulnerability.go @@ -45,7 +45,7 @@ type Vulnerability struct { // RuleID is the rule id used to generate Vulnerability. // This field can bem empty if Vulnerability was not generated from horusec-engine. - RuleID string `json:"-" gorm:"-" swaggerignore:"true"` + RuleID string `json:"rule_id" gorm:"-"` // VulnHash is the vulnerability hash VulnHash string `json:"vulnHash" gorm:"Column:vuln_hash" example:"8bcac7908eb950419537b91e19adc83ce2c9cbfdacf4f81157fdadfec11f7017"`