Skip to content

Commit

Permalink
Fix(CBOM Types): Removed omitempty where zero values are needed
Browse files Browse the repository at this point in the history
Signed-off-by: Petzys <87223648+Petzys@users.noreply.github.com>
  • Loading branch information
Petzys committed Apr 25, 2024
1 parent f13799c commit eb5f576
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cyclonedx.go
Expand Up @@ -416,7 +416,7 @@ type AlgorithmProperties struct {
Padding Padding `json:"padding,omitempty" xml:"padding,omitempty"`
CryptoFunctions *[]CryptoFunction `json:"cryptoFunctions,omitempty" xml:"cryptoFunctions>cryptoFunction,omitempty"`
ClassicalSecurityLevel int `json:"classicalSecurityLevel,omitempty" xml:"classicalSecurityLevel,omitempty"`
NistQuantumSecurityLevel int `json:"nistQuantumSecurityLevel,omitempty" xml:"nistQuantumSecurityLevel,omitempty"`
NistQuantumSecurityLevel int `json:"nistQuantumSecurityLevel" xml:"nistQuantumSecurityLevel"`
}

type CertificateProperties struct {
Expand Down Expand Up @@ -512,12 +512,12 @@ type Ikev2TransformTypes struct {
Prf *[]BOMReference `json:"prf,omitempty" xml:"prf,omitempty"`
Integ *[]BOMReference `json:"integ,omitempty" xml:"integ,omitempty"`
Ke *[]BOMReference `json:"ke,omitempty" xml:"ke,omitempty"`
Esn bool `json:"esn,omitempty" xml:"esn,omitempty"`
Esn bool `json:"esn" xml:"esn"`
Auth *[]BOMReference `json:"auth,omitempty" xml:"auth,omitempty"`
}

type CryptoProperties struct {
AssetType AssetType `json:"assetType" xml:"assetType"` // TODO: What does omitempty mean?
AssetType AssetType `json:"assetType" xml:"assetType"`
AlgorithmProperties *AlgorithmProperties `json:"algorithmProperties,omitempty" xml:"algorithmProperties,omitempty"`
CertificateProperties *CertificateProperties `json:"certificateProperties,omitempty" xml:"certificateProperties,omitempty"`
RelatedCryptoMaterialProperties *RelatedCryptoMaterialProperties `json:"relatedCryptoMaterialProperties,omitempty" xml:"relatedCryptoMaterialProperties,omitempty"`
Expand Down Expand Up @@ -1085,7 +1085,7 @@ const (
SpecVersion1_3 // 1.3
SpecVersion1_4 // 1.4
SpecVersion1_5 // 1.5
SpecVersion1_6 //1.6
SpecVersion1_6 // 1.6
)

type SWID struct {
Expand Down

0 comments on commit eb5f576

Please sign in to comment.