mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-06 07:31:01 +00:00
[C#][netcore] auto-generate appveyor.yml (#7212)
* auto-generate appveyor.yml * Update modules/openapi-generator/src/main/resources/csharp-netcore/appveyor.mustache Co-authored-by: Tatsuro Shibamura <me@shibayan.jp> * Update modules/openapi-generator/src/main/resources/csharp-netcore/appveyor.mustache Co-authored-by: Tatsuro Shibamura <me@shibayan.jp> * Update modules/openapi-generator/src/main/resources/csharp-netcore/appveyor.mustache Co-authored-by: Tatsuro Shibamura <me@shibayan.jp> * Update modules/openapi-generator/src/main/resources/csharp-netcore/appveyor.mustache Co-authored-by: Tatsuro Shibamura <me@shibayan.jp> * update samples Co-authored-by: Tatsuro Shibamura <me@shibayan.jp>
This commit is contained in:
parent
208106d179
commit
2b0c5819c0
@ -343,8 +343,6 @@ public class CSharpNetCoreClientCodegen extends AbstractCSharpCodegen {
|
|||||||
return "Generates a C# client library (.NET Standard, .NET Core).";
|
return "Generates a C# client library (.NET Standard, .NET Core).";
|
||||||
}
|
}
|
||||||
|
|
||||||
// private void syncStringProperty(Map<String, Object> properties, String key)
|
|
||||||
|
|
||||||
public String getModelPropertyNaming() {
|
public String getModelPropertyNaming() {
|
||||||
return this.modelPropertyNaming;
|
return this.modelPropertyNaming;
|
||||||
}
|
}
|
||||||
@ -641,6 +639,8 @@ public class CSharpNetCoreClientCodegen extends AbstractCSharpCodegen {
|
|||||||
supportingFiles.add(new SupportingFile("netcore_testproject.mustache", testPackageFolder, testPackageName + ".csproj"));
|
supportingFiles.add(new SupportingFile("netcore_testproject.mustache", testPackageFolder, testPackageName + ".csproj"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
supportingFiles.add(new SupportingFile("appveyor.mustache", "", "appveyor.yml"));
|
||||||
|
|
||||||
additionalProperties.put("apiDocPath", apiDocPath);
|
additionalProperties.put("apiDocPath", apiDocPath);
|
||||||
additionalProperties.put("modelDocPath", modelDocPath);
|
additionalProperties.put("modelDocPath", modelDocPath);
|
||||||
}
|
}
|
||||||
|
9
modules/openapi-generator/src/main/resources/csharp-netcore/appveyor.mustache
vendored
Normal file
9
modules/openapi-generator/src/main/resources/csharp-netcore/appveyor.mustache
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# auto-generated by OpenAPI Generator (https://github.com/OpenAPITools/openapi-generator)
|
||||||
|
#
|
||||||
|
image: Visual Studio 2019
|
||||||
|
clone_depth: 1
|
||||||
|
build_script:
|
||||||
|
- dotnet build -c Release
|
||||||
|
- dotnet test -c Release
|
||||||
|
after_build:
|
||||||
|
- dotnet pack .\src\{{{packageName}}}\{{{packageName}}}.csproj -o ../../output -c Release --no-build
|
@ -1,6 +1,7 @@
|
|||||||
.gitignore
|
.gitignore
|
||||||
Org.OpenAPITools.sln
|
Org.OpenAPITools.sln
|
||||||
README.md
|
README.md
|
||||||
|
appveyor.yml
|
||||||
docs/AdditionalPropertiesClass.md
|
docs/AdditionalPropertiesClass.md
|
||||||
docs/Animal.md
|
docs/Animal.md
|
||||||
docs/AnotherFakeApi.md
|
docs/AnotherFakeApi.md
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
# auto-generated by OpenAPI Generator (https://github.com/OpenAPITools/openapi-generator)
|
||||||
|
#
|
||||||
|
image: Visual Studio 2019
|
||||||
|
clone_depth: 1
|
||||||
|
build_script:
|
||||||
|
- dotnet build -c Release
|
||||||
|
- dotnet test -c Release
|
||||||
|
after_build:
|
||||||
|
- dotnet pack .\src\Org.OpenAPITools\Org.OpenAPITools.csproj -o ../../output -c Release --no-build
|
@ -1,6 +1,7 @@
|
|||||||
.gitignore
|
.gitignore
|
||||||
Org.OpenAPITools.sln
|
Org.OpenAPITools.sln
|
||||||
README.md
|
README.md
|
||||||
|
appveyor.yml
|
||||||
docs/AdditionalPropertiesClass.md
|
docs/AdditionalPropertiesClass.md
|
||||||
docs/Animal.md
|
docs/Animal.md
|
||||||
docs/AnotherFakeApi.md
|
docs/AnotherFakeApi.md
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
# auto-generated by OpenAPI Generator (https://github.com/OpenAPITools/openapi-generator)
|
||||||
|
#
|
||||||
|
image: Visual Studio 2019
|
||||||
|
clone_depth: 1
|
||||||
|
build_script:
|
||||||
|
- dotnet build -c Release
|
||||||
|
- dotnet test -c Release
|
||||||
|
after_build:
|
||||||
|
- dotnet pack .\src\Org.OpenAPITools\Org.OpenAPITools.csproj -o ../../output -c Release --no-build
|
Loading…
x
Reference in New Issue
Block a user