Skip to content

Commit

Permalink
Merge pull request #173 from snyk/172-postal-address
Browse files Browse the repository at this point in the history
feat(1.6): add PostalAddress type
  • Loading branch information
nscuro authored May 21, 2024
2 parents 61ce290 + 7a32fde commit 2124c35
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cyclonedx.go
Original file line number Diff line number Diff line change
Expand Up @@ -1059,6 +1059,7 @@ type OrganizationalContact struct {

type OrganizationalEntity struct {
Name string `json:"name" xml:"name"`
Address *PostalAddress `json:"address,omitempty" xml:"address,omitempty"`
URL *[]string `json:"url,omitempty" xml:"url,omitempty"`
Contact *[]OrganizationalContact `json:"contact,omitempty" xml:"contact,omitempty"`
}
Expand Down Expand Up @@ -1098,6 +1099,16 @@ type Pedigree struct {
Notes string `json:"notes,omitempty" xml:"notes,omitempty"`
}

type PostalAddress struct {
BOMRef string `json:"bom-ref,omitempty" xml:"bom-ref,attr,omitempty"`
Country string `json:"country,omitempty" xml:"country,omitempty"`
Region string `json:"region,omitempty" xml:"region,omitempty"`
Locality string `json:"locality,omitempty" xml:"locality,omitempty"`
PostOfficeBoxNumber string `json:"postOfficeBoxNumber,omitempty" xml:"postOfficeBoxNumber,omitempty"`
PostalCode string `json:"postalCode,omitempty" xml:"postalCode,omitempty"`
StreetAddress string `json:"streetAddress,omitempty" xml:"streetAddress,omitempty"`
}

type ProofOfConcept struct {
ReproductionSteps string `json:"reproductionSteps,omitempty" xml:"reproductionSteps,omitempty"`
Environment string `json:"environment,omitempty" xml:"environment,omitempty"`
Expand Down

0 comments on commit 2124c35

Please sign in to comment.