2020-01-08 21:54:05 -05:00

2.6 KiB

title sidebar_label
Config Options for csharp-nancyfx csharp-nancyfx
Option Description Values Default
packageName C# package name (convention: Title.Case). Org.OpenAPITools
packageVersion C# package version. 1.0.0
sourceFolder source folder for generated code src
interfacePrefix Prefix interfaces with a community standard or widely accepted prefix.
packageGuid The GUID that will be associated with the C# project null
packageContext Optionally overrides the PackageContext which determines the namespace (namespace=packageName.packageContext). If not set, packageContext will default to basePath. null
sortParamsByRequiredFlag Sort method arguments to place required parameters before optional parameters. true
optionalProjectFile Generate {PackageName}.csproj. true
useDateTimeOffset Use DateTimeOffset to model date-time properties false
useCollection Deserialize array types to Collection<T> instead of List<T>. false
returnICollection Return ICollection<T> instead of the concrete type. false
immutable Enabled by default. If disabled generates model classes with setters true
writeModulePath Enabled by default. If disabled, module paths will not mirror api base path true
asyncServer Set to true to enable the generation of async routes/endpoints. false

IMPORT MAPPING

Type/Alias Imports

INSTANTIATION TYPES

Type/Alias Instantiated By
array List
list List
map Dictionary

LANGUAGE PRIMITIVES

  • int?
  • Dictionary
  • string
  • bool
  • LocalDate?
  • DateTimeOffset?
  • ZonedDateTime?
  • String
  • Guid
  • System.IO.Stream
  • bool?
  • float
  • long
  • DateTime
  • Int32
  • float?
  • DateTime?
  • List
  • Boolean
  • LocalTime?
  • long?
  • double
  • Guid?
  • DateTimeOffset
  • Double
  • int
  • byte[]
  • Float
  • Int64
  • double?
  • ICollection
  • Collection
  • Object
  • decimal?
  • decimal

RESERVED WORDS

  • async
  • var
  • yield
  • await
  • dynamic