Skip to content

Commit

Permalink
Fix serialization of EvidenceFieldType
Browse files Browse the repository at this point in the history
Signed-off-by: andreas hilti <andreas.hilti@bluewin.ch>
  • Loading branch information
andreas-hilti committed May 19, 2024
1 parent a27d923 commit 4d347f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/CycloneDX.Core/Json/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ public static JsonSerializerOptions GetJsonSerializerOptions()

options.Converters.Add(new EnvironmentVarChoiceConverter());
options.Converters.Add(new ToolChoicesConverter());


options.Converters.Add(new HyphenEnumConverter<EvidenceIdentity.EvidenceFieldType>());
options.Converters.Add(new HyphenEnumConverter<EvidenceMethods.EvidenceTechnique>());
options.Converters.Add(new ScoreMethodConverter());
options.Converters.Add(new HyphenEnumConverter<Severity>());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
}
],
"identity": {
"field": "Purl",
"field": "purl",
"confidence": 1,
"methods": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
}
],
"identity": {
"field": "Purl",
"field": "purl",
"confidence": 1,
"methods": [
{
Expand Down

0 comments on commit 4d347f2

Please sign in to comment.