@team-supercharge/oasg 13.2.0-feature-csharp-functions-7a73b930.0 → 13.2.0-feature-csharp-functions-2881a5f8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -778,9 +778,7 @@ describe('Auth', function () {
778
778
  "id": "csharp-functions",
779
779
  "type": "csharp-functions",
780
780
  "source": "source-merged",
781
- "packageName": "Oasg.Example",
782
- "version": "1.0.0",
783
- "sourceUrl": "https://gitlab.supercharge.io/api/v4/projects/1900/packages/nuget/index.json",
781
+ "sourceUrl": "https://api.nuget.org/v3/index.json",
784
782
  "apiKey": "apiKey",
785
783
  "generatorCustomArgs": "--additional-properties=packageName=$packageName"
786
784
  }
@@ -788,8 +786,6 @@ describe('Auth', function () {
788
786
 
789
787
  |Parameter| Description| Required | Default |
790
788
  |-|-|-|-|
791
- | packageName | C# package name (convention: Title.Case). | Y | - |
792
- | version | Version number of the generated package | Y | - |
793
789
  | sourceUrl | Url to where the package will be published | Y | - |
794
790
  | apiKey | Apikey of nuget source | Y | - |
795
791
  | generatorCustomArgs | Custom arguments of the generator | N | - |
package/config.schema.yml CHANGED
@@ -353,19 +353,13 @@ targets:
353
353
  - properties:
354
354
  type:
355
355
  pattern: '^csharp-functions$'
356
- packageName:
357
- type: string
358
- version:
359
- type: string
360
356
  sourceUrl:
361
357
  type: string
362
- apikey:
363
- type: string
358
+ apiKey:
359
+ type: string
364
360
  required:
365
- - packageName
366
- - version
367
361
  - sourceUrl
368
- - apikey
362
+ - apiKey
369
363
 
370
364
  definitions:
371
365
  # default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-supercharge/oasg",
3
- "version": "13.2.0-feature-csharp-functions-7a73b930.0",
3
+ "version": "13.2.0-feature-csharp-functions-2881a5f8.0",
4
4
  "description": "Node-based tool to lint OpenAPI documents and generate clients, servers and documentation from them",
5
5
  "author": "Supercharge",
6
6
  "license": "MIT",
@@ -11,5 +11,5 @@ java -jar $binary generate \
11
11
  -t $templateDir \
12
12
  -o out/$targetId \
13
13
  -c $(dirname "$0")/generator-config.json \
14
- -p "packageVersion=$version,packageName=${packageName}" \
14
+ -p "packageVersion=$version,packageName=$packageName" \
15
15
  $generatorCustomArgs
@@ -7,9 +7,9 @@ cd out/$targetId
7
7
  # pack
8
8
  dotnet restore
9
9
  dotnet build -c Release
10
- dotnet pack -c Release /p:Version=${version}
10
+ dotnet pack -c Release /p:Version=$version /p:IsPackable=true
11
11
 
12
12
  # push
13
- dotnet nuget push "bin/Release/*.nupkg" --api-key ${apikey} --source ${sourceUrl}
13
+ dotnet nuget push "src/**/bin/Release/*.nupkg" --api-key ${apiKey} --source ${sourceUrl}
14
14
 
15
15
  cd ../..