openapi-generator/docs/generators/aspnetcore.md
William Cheng 1b2f3fbfb6
Fix alias to map response (#1067)
* fix response reference to map

* update samples

* add null check for openapi
2018-09-20 19:29:33 +08:00

969 B

CONFIG OPTIONS for aspnetcore

packageName
    C# package name (convention: Title.Case). (Default: Org.OpenAPITools)

packageVersion
    C# package version. (Default: 1.0.0)

packageGuid
    The GUID that will be associated with the C# project

sourceFolder
    source folder for generated code (Default: src)

aspnetCoreVersion
    ASP.NET Core version: 2.1 (default), 2.0 (deprecated) (Default: 2.1)

sortParamsByRequiredFlag
    Sort method arguments to place required parameters before optional parameters. (Default: true)

useDateTimeOffset
    Use DateTimeOffset to model date-time properties (Default: false)

useCollection
    Deserialize array types to Collection<T> instead of List<T>. (Default: false)

returnICollection
    Return ICollection<T> instead of the concrete type. (Default: false)

useSwashbuckle
    Uses the Swashbuckle.AspNetCore NuGet package for documentation. (Default: true)

Back to the generators list