Skip to content

Commit 9393271

Browse files
Merge pull request gocsaf#703 from gocsaf/add_rolie_category
ROLIE: Add category to entries
2 parents 0630a9a + 502376c commit 9393271

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

csaf/rolie.go

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -169,14 +169,22 @@ type Format struct {
169169

170170
// Entry for ROLIE.
171171
type Entry struct {
172-
ID string `json:"id"`
173-
Titel string `json:"title"`
174-
Link []Link `json:"link"`
175-
Published TimeStamp `json:"published"`
176-
Updated TimeStamp `json:"updated"`
177-
Summary *Summary `json:"summary,omitempty"`
178-
Content Content `json:"content"`
179-
Format Format `json:"format"`
172+
Base *string `json:"base,omitempty"`
173+
LanguageTag *string `json:"lang,omitempty"`
174+
Author *json.RawMessage `json:"author,omitempty"`
175+
Category []ROLIECategory `json:"category,omitempty"`
176+
Content Content `json:"content"`
177+
Contributor *json.RawMessage `json:"contributor,omitempty"`
178+
ID string `json:"id"`
179+
Link []Link `json:"link"`
180+
Published TimeStamp `json:"published"`
181+
Rights *json.RawMessage `json:"rights,omitempty"`
182+
Source *json.RawMessage `json:"source,omitempty"`
183+
Summary *Summary `json:"summary,omitempty"`
184+
Titel string `json:"title"`
185+
Updated TimeStamp `json:"updated"`
186+
Format Format `json:"format"`
187+
Property *json.RawMessage `json:"property,omitempty"`
180188
}
181189

182190
// FeedData is the content of the ROLIE feed.

0 commit comments

Comments
 (0)