@team-supercharge/oasg 13.2.0-feature-csharp-functions-34b6d98d.0 → 13.2.0-feature-csharp-functions-e036b8d7.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,22 +778,16 @@ 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",
784
- "username": "gitlab-ci-token",
785
- "password" : "token",
781
+ "sourceUrl": "https://api.nuget.org/v3/index.json",
782
+ "apiKey": "apiKey",
786
783
  "generatorCustomArgs": "--additional-properties=packageName=$packageName"
787
784
  }
788
785
  ```
789
786
 
790
787
  |Parameter| Description| Required | Default |
791
788
  |-|-|-|-|
792
- | packageName | C# package name (convention: Title.Case). | Y | - |
793
- | version | Version number of the generated package | Y | - |
794
789
  | sourceUrl | Url to where the package will be published | Y | - |
795
- | username | The username to nuget source | Y | - |
796
- | password | The password to nuget source | Y | - |
790
+ | apiKey | Apikey of nuget source | Y | - |
797
791
  | generatorCustomArgs | Custom arguments of the generator | N | - |
798
792
 
799
793
  ---
package/config.schema.yml CHANGED
@@ -353,22 +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
- username:
363
- type: string
364
- password:
365
- type: string
358
+ apiKey:
359
+ type: string
366
360
  required:
367
- - packageName
368
- - version
369
361
  - sourceUrl
370
- - username
371
- - password
362
+ - apiKey
372
363
 
373
364
  definitions:
374
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-34b6d98d.0",
3
+ "version": "13.2.0-feature-csharp-functions-e036b8d7.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",
@@ -1,5 +1,4 @@
1
1
  {
2
- "global-property": "models",
3
2
  "inlineSchemaOptions": {
4
3
  "ARRAY_ITEM_SUFFIX": "",
5
4
  "MAP_ITEM_SUFFIX": "",
@@ -7,14 +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
- # publish
13
- dotnet nuget add source "${sourceUrl}" \
14
- --name oasg \
15
- --username ${username} \
16
- --password ${password} \
17
- --store-password-in-clear-text
18
- dotnet nuget push "bin/Release/*.nupkg" --source oasg
12
+ # push
13
+ dotnet nuget push "src/**/bin/Release/*.nupkg" --api-key ${apikey} --source ${sourceUrl}
19
14
 
20
15
  cd ../..