diff --git a/src/NSwag.Commands/Commands/CodeGeneration/JsonSchemaToCSharpCommand.cs b/src/NSwag.Commands/Commands/CodeGeneration/JsonSchemaToCSharpCommand.cs index 85569bcc1..e506599ee 100644 --- a/src/NSwag.Commands/Commands/CodeGeneration/JsonSchemaToCSharpCommand.cs +++ b/src/NSwag.Commands/Commands/CodeGeneration/JsonSchemaToCSharpCommand.cs @@ -133,6 +133,13 @@ public CSharpClassStyle ClassStyle get => Settings.ClassStyle; set => Settings.ClassStyle = value; } + + [Argument(Name = "GenerateNativeRecords", IsRequired = false, Description = "Specifies whether to generate native records.")] + public bool GenerateNativeRecords + { + get => Settings.GenerateNativeRecords; + set => Settings.GenerateNativeRecords = value; + } [Argument(Name = "JsonLibrary", IsRequired = false, Description = "The CSharp JSON library, 'NewtonsoftJson' or 'SystemTextJson' (default: 'NewtonsoftJson', 'SystemTextJson' is experimental).")] public CSharpJsonLibrary JsonLibrary