Skip to content

Commit

Permalink
Add PropertySetterAccessModifier, GenerateNativeRecords into OpenApiT…
Browse files Browse the repository at this point in the history
…oCSharpClientCommand
  • Loading branch information
trejjam committed Oct 25, 2023
1 parent 510ee4d commit 133016f
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,20 @@ public string TypeAccessModifier
set { Settings.CSharpGeneratorSettings.TypeAccessModifier = value; }
}

[Argument(Name = "PropertySetterAccessModifier", IsRequired = false, Description = "The access modifier of property setters (default: '').")]
public string PropertySetterAccessModifier
{
get { return Settings.CSharpGeneratorSettings.PropertySetterAccessModifier; }
set { Settings.CSharpGeneratorSettings.PropertySetterAccessModifier = value; }
}

[Argument(Name = "GenerateNativeRecords", IsRequired = false, Description = "Generate C# 9.0 record types instead of record-like classes (default: false).")]
public bool GenerateNativeRecords
{
get { return Settings.CSharpGeneratorSettings.GenerateNativeRecords; }
set { Settings.CSharpGeneratorSettings.GenerateNativeRecords = value; }
}

[Argument(Name = "GenerateContractsOutput", IsRequired = false,
Description = "Specifies whether to generate contracts output (interface and models in a separate file set with the ContractsOutput parameter).")]
public bool GenerateContractsOutput { get; set; }
Expand Down

0 comments on commit 133016f

Please sign in to comment.