-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.openapi-generator-ignore
41 lines (30 loc) · 1.95 KB
/
.openapi-generator-ignore
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.
# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
# generated with command:
# npx @openapitools/openapi-generator-cli generate -i http://localhost:7072/api/openapi/v3.json -g csharp -o . --additional-properties=packageName=Agravity.Public,targetFramework=netstandard2.0,packageVersion=4.7.3
# npx @openapitools/openapi-generator-cli generate -i http://localhost:7072/api/openapi/v3.json -g csharp-netcore -o . --additional-properties=packageName=Agravity.Public,library=httpclient,targetFramework=netstandard2.0,packageVersion=4.8.1
# replace Dictionary<string, object>> with Dictionary<string, object>> in the generated code
# build files (with powershell)
# dotnet build .\src\Agravity.Public\Agravity.Public.csproj -c Release
# build nuget package
# nuget pack -Build -OutputDirectory out .\src\Agravity.Public\Agravity.Public.csproj -Version 4.8.1
# Set API Key (once)
# nuget setApiKey xyz
# Update Package
# dotnet nuget push .\out\Agravity.Public.4.8.1.nupkg -s https://api.nuget.org/v3/index.json