@team-supercharge/oasg 13.2.0-feature-csharp-functions-34b6d98d.0 → 13.2.0-feature-csharp-functions-7a73b930.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
@@ -781,8 +781,7 @@ describe('Auth', function () {
781
781
  "packageName": "Oasg.Example",
782
782
  "version": "1.0.0",
783
783
  "sourceUrl": "https://gitlab.supercharge.io/api/v4/projects/1900/packages/nuget/index.json",
784
- "username": "gitlab-ci-token",
785
- "password" : "token",
784
+ "apiKey": "apiKey",
786
785
  "generatorCustomArgs": "--additional-properties=packageName=$packageName"
787
786
  }
788
787
  ```
@@ -792,8 +791,7 @@ describe('Auth', function () {
792
791
  | packageName | C# package name (convention: Title.Case). | Y | - |
793
792
  | version | Version number of the generated package | Y | - |
794
793
  | 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 | - |
794
+ | apiKey | Apikey of nuget source | Y | - |
797
795
  | generatorCustomArgs | Custom arguments of the generator | N | - |
798
796
 
799
797
  ---
package/config.schema.yml CHANGED
@@ -359,16 +359,13 @@ targets:
359
359
  type: string
360
360
  sourceUrl:
361
361
  type: string
362
- username:
363
- type: string
364
- password:
362
+ apikey:
365
363
  type: string
366
364
  required:
367
365
  - packageName
368
366
  - version
369
367
  - sourceUrl
370
- - username
371
- - password
368
+ - apikey
372
369
 
373
370
  definitions:
374
371
  # 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-7a73b930.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
@@ -1,5 +1,4 @@
1
1
  {
2
- "global-property": "models",
3
2
  "inlineSchemaOptions": {
4
3
  "ARRAY_ITEM_SUFFIX": "",
5
4
  "MAP_ITEM_SUFFIX": "",
@@ -9,12 +9,7 @@ dotnet restore
9
9
  dotnet build -c Release
10
10
  dotnet pack -c Release /p:Version=${version}
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 "bin/Release/*.nupkg" --api-key ${apikey} --source ${sourceUrl}
19
14
 
20
15
  cd ../..