forked from loafle/openapi-generator-original
* [config-help] Sort all outputs
* Remove old/stale generator docs (these have been renamed previously)
* Sort config doc outputs, making it easier to find relevant info
* Fixes cliOptions duplicates
Erlang client/proper improperly set the version option as packageName
(causing duplicate for packageName).
The java and swift option removals are because the options are added in
parent classes, resulting in duplication of the options.
* Add --github-nested-index for generating docs/generators/README.md
* 📝 Regenerate generator docs
2.6 KiB
2.6 KiB
title | sidebar_label |
---|---|
Config Options for csharp-nancyfx | csharp-nancyfx |
Option | Description | Values | Default |
---|---|---|---|
asyncServer | Set to true to enable the generation of async routes/endpoints. | false | |
immutable | Enabled by default. If disabled generates model classes with setters | true | |
interfacePrefix | Prefix interfaces with a community standard or widely accepted prefix. | ||
optionalProjectFile | Generate {PackageName}.csproj. | true | |
packageContext | Optionally overrides the PackageContext which determines the namespace (namespace=packageName.packageContext). If not set, packageContext will default to basePath. | null | |
packageGuid | The GUID that will be associated with the C# project | null | |
packageName | C# package name (convention: Title.Case). | Org.OpenAPITools | |
packageVersion | C# package version. | 1.0.0 | |
returnICollection | Return ICollection<T> instead of the concrete type. | false | |
sortParamsByRequiredFlag | Sort method arguments to place required parameters before optional parameters. | true | |
sourceFolder | source folder for generated code | src | |
useCollection | Deserialize array types to Collection<T> instead of List<T>. | false | |
useDateTimeOffset | Use DateTimeOffset to model date-time properties | false | |
writeModulePath | Enabled by default. If disabled, module paths will not mirror api base path | true |
IMPORT MAPPING
Type/Alias | Imports |
---|
INSTANTIATION TYPES
Type/Alias | Instantiated By |
---|---|
array | List |
list | List |
map | Dictionary |
LANGUAGE PRIMITIVES
- Boolean
- Collection
- DateTime
- DateTime?
- DateTimeOffset
- DateTimeOffset?
- Dictionary
- Double
- Float
- Guid
- Guid?
- ICollection
- Int32
- Int64
- List
- LocalDate?
- LocalTime?
- Object
- String
- System.IO.Stream
- ZonedDateTime?
- bool
- bool?
- byte[]
- decimal
- decimal?
- double
- double?
- float
- float?
- int
- int?
- long
- long?
- string
RESERVED WORDS
- async
- await
- dynamic
- var
- yield