OpenAPI Generator

OpenAPI Generator

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

generators/aspnetcore


id: generator-opts-server-aspnetcore title: Config Options for aspnetcore sidebar_label: aspnetcore


OptionDescriptionValuesDefault
licenseUrlThe URL of the licensehttp://localhost
licenseNameThe name of the licenseNoLicense
packageCopyrightSpecifies an AssemblyCopyright for the .NET Framework global assembly attributes stored in the AssemblyInfo file.No Copyright
packageAuthorsSpecifies Authors property in the .NET Core project file.OpenAPI
packageTitleSpecifies an AssemblyTitle for the .NET Framework global assembly attributes stored in the AssemblyInfo file.OpenAPI Library
packageNameC# package name (convention: Title.Case).Org.OpenAPITools
packageVersionC# package version.1.0.0
packageGuidThe GUID that will be associated with the C# projectnull
sourceFoldersource folder for generated codesrc
compatibilityVersionASP.Net Core CompatibilityVersionVersion_2_1
aspnetCoreVersionASP.NET Core version: 2.2 (default), 2.1, 2.0 (deprecated)2.2
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
useSwashbuckleUses the Swashbuckle.AspNetCore NuGet package for documentation.true
isLibraryIs the build a libraryfalse
classModifierClass Modifier can be empty, abstract
operationModifierOperation Modifier can be virtual, abstract or partialvirtual
buildTargetTarget to build an application or libraryprogram
generateBodyGenerates method body.true
operationIsAsyncSet methods to async or sync (default).false
operationResultTaskSet methods result to Task<>.false
modelClassModifierModel Class Modifier can be nothing or partialpartial
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))