Skip to content

Commit 3246c7b

Browse files
authored
Adds the GenerateNativeRecords argument to the jsonschema2csclient command (#5082)
1 parent 805f512 commit 3246c7b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/NSwag.Commands/Commands/CodeGeneration/JsonSchemaToCSharpCommand.cs

+7
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,13 @@ public CSharpClassStyle ClassStyle
133133
get => Settings.ClassStyle;
134134
set => Settings.ClassStyle = value;
135135
}
136+
137+
[Argument(Name = "GenerateNativeRecords", IsRequired = false, Description = "Specifies whether to generate native records.")]
138+
public bool GenerateNativeRecords
139+
{
140+
get => Settings.GenerateNativeRecords;
141+
set => Settings.GenerateNativeRecords = value;
142+
}
136143

137144
[Argument(Name = "JsonLibrary", IsRequired = false, Description = "The CSharp JSON library, 'NewtonsoftJson' or 'SystemTextJson' (default: 'NewtonsoftJson', 'SystemTextJson' is experimental).")]
138145
public CSharpJsonLibrary JsonLibrary

0 commit comments

Comments
 (0)