Skip to content

Commit

Permalink
Add missing assessments field to archetype resource
Browse files Browse the repository at this point in the history
  • Loading branch information
mansam committed Sep 18, 2023
1 parent 9a199e6 commit fa7417c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/archetype.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ type Archetype struct {
Stakeholders []Ref `json:"stakeholders" yaml:"stakeholders"`
StakeholderGroups []Ref `json:"stakeholderGroups" yaml:"stakeholderGroups"`
Applications []Ref `json:"applications" yaml:"applications"`
Assessments []Ref `json:"assessments" yaml:"assessments"`
}

//
Expand All @@ -334,6 +335,10 @@ func (r *Archetype) With(m *model.Archetype) {
for _, g := range m.StakeholderGroups {
r.StakeholderGroups = append(r.StakeholderGroups, r.ref(g.ID, &g))
}
r.Assessments = []Ref{}
for _, a := range m.Assessments {
r.Assessments = append(r.Assessments, r.ref(a.ID, &a))
}
}

//
Expand Down

0 comments on commit fa7417c

Please sign in to comment.