diff --git a/src/CycloneDX.Core/Json/Utils.cs b/src/CycloneDX.Core/Json/Utils.cs index aa648242..6634d0db 100644 --- a/src/CycloneDX.Core/Json/Utils.cs +++ b/src/CycloneDX.Core/Json/Utils.cs @@ -82,7 +82,7 @@ public static JsonSerializerOptions GetJsonSerializerOptions() options.Converters.Add(new EnumMemberConverter()); options.Converters.Add(new EvidenceIdentityListConverter()); - options.Converters.Add(new HyphenEnumConverter()); + options.Converters.Add(new EnumMemberConverter()); options.Converters.Add(new HyphenEnumConverter()); options.Converters.Add(new ScoreMethodConverter()); options.Converters.Add(new HyphenEnumConverter()); diff --git a/src/CycloneDX.Core/Models/AlgorithmProperties.cs b/src/CycloneDX.Core/Models/AlgorithmProperties.cs index a11c3e18..cdb8a689 100644 --- a/src/CycloneDX.Core/Models/AlgorithmProperties.cs +++ b/src/CycloneDX.Core/Models/AlgorithmProperties.cs @@ -388,7 +388,7 @@ public enum ExecutionEnvironment [XmlEnum("software-plain-ram")] Software_Plain_Ram, [XmlEnum("software-encrypted-ram")] - Software_Encypted_Ram, + Software_Encrypted_Ram, [XmlEnum("software-tee")] Software_TEE, [XmlEnum("hardware")] @@ -403,7 +403,7 @@ public enum Primitive [XmlEnum("other")] Other, [XmlEnum("drbg")] - DRGB, + DRBG, [XmlEnum("mac")] MAC, [XmlEnum("block-cipher")] diff --git a/src/CycloneDX.Core/Models/Data.cs b/src/CycloneDX.Core/Models/Data.cs index 7741a68a..6b829d8d 100644 --- a/src/CycloneDX.Core/Models/Data.cs +++ b/src/CycloneDX.Core/Models/Data.cs @@ -31,7 +31,7 @@ public class Data public enum DataType { [XmlEnum(Name = "source-code")] - SourceCode, + Source_Code, [XmlEnum(Name = "configuration")] Configuration, [XmlEnum(Name = "dataset")] diff --git a/src/CycloneDX.Core/Models/EvidenceIdentity.cs b/src/CycloneDX.Core/Models/EvidenceIdentity.cs index cb57628f..60831c5c 100644 --- a/src/CycloneDX.Core/Models/EvidenceIdentity.cs +++ b/src/CycloneDX.Core/Models/EvidenceIdentity.cs @@ -19,6 +19,7 @@ using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq.Expressions; +using System.Runtime.Serialization; using System.Text.Json.Serialization; using System.Xml; using System.Xml.Serialization; @@ -50,6 +51,7 @@ public enum EvidenceFieldType [XmlEnum(Name = "hash")] Hash, [XmlEnum(Name = "omniborId")] + [EnumMember(Value = "omniborId")] OmniborId, [XmlEnum(Name = "swhid")] Swhid, diff --git a/src/CycloneDX.Core/Models/ModelCard.cs b/src/CycloneDX.Core/Models/ModelCard.cs index 00afe51e..ba488868 100644 --- a/src/CycloneDX.Core/Models/ModelCard.cs +++ b/src/CycloneDX.Core/Models/ModelCard.cs @@ -35,12 +35,12 @@ public enum ModelParameterApproachType Supervised, [XmlEnum(Name = "unsupervised")] Unsupervised, - [XmlEnum(Name = "reinforced-learning")] - ReinforcedLearning, + [XmlEnum(Name = "reinforcement-learning")] + Reinforcement_Learning, [XmlEnum(Name = "semi-supervised")] - SemiSupervised, + Semi_Supervised, [XmlEnum(Name = "self-supervised")] - SelfSupervised, + Self_Supervised, } [ProtoContract]