OpenAPI Generator

OpenAPI Generator

  • Get Started
  • Generators
  • Roadmap
  • Team
  • FAQ
  • Blog

generators/csharp-netcore


id: generator-opts-client-csharp-netcore title: Config Options for csharp-netcore sidebar_label: csharp-netcore


OptionDescriptionValuesDefault
packageNameC# package name (convention: Title.Case).Org.OpenAPITools
packageVersionC# package version.1.0.0
sourceFoldersource folder for generated codesrc
packageGuidThe GUID that will be associated with the C# projectnull
interfacePrefixPrefix interfaces with a community standard or widely accepted prefix.I
targetFrameworkThe target .NET framework version.
netstandard1.3
.NET Standard 1.3 compatible
netstandard1.4
.NET Standard 1.4 compatible
netstandard1.5
.NET Standard 1.5 compatible
netstandard1.6
.NET Standard 1.6 compatible
netstandard2.0
.NET Standard 2.0 compatible
netcoreapp2.0
.NET Core 2.0 compatible
v4.6.1
modelPropertyNamingNaming convention for the property: 'camelCase', 'PascalCase', 'snake_case' and 'original', which keeps the original namePascalCase
hideGenerationTimestampHides the generation timestamp when files are generated.true
sortParamsByRequiredFlagSort method arguments to place required parameters before optional parameters.true
useDateTimeOffsetUse DateTimeOffset to model date-time propertiesfalse
useCollectionDeserialize array types to Collection<T> instead of List<T>.false
returnICollectionReturn ICollection<T> instead of the concrete type.false
optionalMethodArgumentC# Optional method argument, e.g. void square(int x=10) (.net 4.0+ only).true
optionalAssemblyInfoGenerate AssemblyInfo.cs.true
optionalProjectFileGenerate {PackageName}.csproj.true
nonPublicApiGenerates code with reduced access modifiers; allows embedding elsewhere without exposing non-public API calls to consumers.false
allowUnicodeIdentifiersboolean, toggles whether unicode identifiers are allowed in names or not, default is falsefalse
netCoreProjectFileUse the new format (.NET Core) for .NET project files (.csproj).false
validatableGenerates self-validatable models.true
Last updated on 2019-5-20
OpenAPI Generator
Docs
Customizing GeneratorsWorkflow Integrations
Community
User ShowcaseStack OverflowChat RoomTwitter
More
BlogGitHub RepoStar
Copyright © 2019 OpenAPI-Generator Contributors (https://openapi-generator.tech). (Both "OpenAPI Tools" (https://OpenAPITools.org) and "OpenAPI Generator" are not affiliated with OpenAPI Initiative (OAI))