| 1 | package sarif |
| 2 | |
| 3 | // Fix ... |
| 4 | type Fix struct { |
| 5 | PropertyBag |
| 6 | Description *Message `json:"description,omitempty"` |
| 7 | ArtifactChanges []*ArtifactChange `json:"artifactChanges"` // required |
| 8 | } |
| 9 | |
| 10 | // NewFix ... |
| 11 | func NewFix() *Fix { |
| 12 | return &Fix{} |
| 13 | } |
| 14 | |
| 15 | // WithDescription ... |
| 16 | func (f *Fix) WithDescription(message *Message) *Fix { |
| 17 | f.Description = message |
| 18 | return f |
| 19 | } |
| 20 | |
| 21 | // WithArtifactChange ... |
| 22 | func (f *Fix) WithArtifactChange(ac *ArtifactChange) *Fix { |
| 23 | f.ArtifactChanges = append(f.ArtifactChanges, ac) |
| 24 | return f |
| 25 | } |