Files
api-generator/architecture/api/templates/dotnet-server-generator-config.mustache
2025-10-11 13:08:09 +02:00

40 lines
1.0 KiB
Plaintext

inputSpec: {{specPath}}
generatorName: aspnetcore
templateDir: {{templateFolder}}/{{generatorVersion}}/aspnetcore/
outputDir: {{outputFolder}}
{{#if modelSuffix}}modelNameSuffix: {{modelSuffix}}{{/if}}
typeMappings:
file: "IFormFile"
importMappings:
IFormFile: "Microsoft.AspNetCore.Http.IFormFile"
schemaMappings:
IFormFile: "Microsoft.AspNetCore.Http.IFormFile"
additionalProperties:
aspnetCoreVersion: "{{aspnetCoreVersion}}"
packageName: "{{packageName}}"
packageVersion: "{{packageVersion}}"
generateBody: "false"
classModifier: "abstract"
operationModifier: "abstract"
isLibrary: "true"
buildTarget: "library"
enumNameSuffix: ""
enumValueSuffix: ""
operationResultTask: true
operationIsAsync: true
removeModelPackage: true
packageReferences: [
{{#each refs}} { include: "{{this.Config.NugetPackage}}", version: "{{this.Info.version}}" },
{{/each}}]
modelNamespaces: [
{{#each modelNameSpace}} "{{this.Config.NugetPackage}}.Models",
{{/each}}]