Skip to content

Commit

Permalink
unmarshal additional information (#535)
Browse files Browse the repository at this point in the history
  • Loading branch information
zlav committed Sep 18, 2019
1 parent 877e552 commit 36d3766
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions api/fossa/revisions.go
Expand Up @@ -23,13 +23,22 @@ type License struct {

// A Revision holds the FOSSA API response for the revision API.
type Revision struct {
Locator *Locator `json:"loc"`
Licenses []License
Project *Project
Meta []RevisionMeta
Issues []Issue
Version string
Hash string
Locator *Locator `json:"loc"`
Licenses []License
Project *Project
DependencyLock DependencyLock `json:"DependencyLock"`
Meta []RevisionMeta
Issues []Issue
Version string
Hash string
}

type DependencyLock struct {
PathsTo PathsTo `json:"paths_to"`
}

type PathsTo struct {
Paths [][]string `json:"paths"`
}

// A RevisionMeta holds metadata about a FOSSA API revision.
Expand Down

0 comments on commit 36d3766

Please sign in to comment.