@team-supercharge/oasg 13.2.0-feature-csharp-functions-90bc2acb.0 → 13.2.0-feature-csharp-functions-34b6d98d.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
@@ -780,8 +780,7 @@ describe('Auth', function () {
780
780
  "source": "source-merged",
781
781
  "packageName": "Oasg.Example",
782
782
  "version": "1.0.0",
783
- "apiUrl": "https://gitlab.supercharge.io/api/v4",
784
- "projectId" : "1900",
783
+ "sourceUrl": "https://gitlab.supercharge.io/api/v4/projects/1900/packages/nuget/index.json",
785
784
  "username": "gitlab-ci-token",
786
785
  "password" : "token",
787
786
  "generatorCustomArgs": "--additional-properties=packageName=$packageName"
@@ -792,8 +791,7 @@ describe('Auth', function () {
792
791
  |-|-|-|-|
793
792
  | packageName | C# package name (convention: Title.Case). | Y | - |
794
793
  | version | Version number of the generated package | Y | - |
795
- | apiUrl | Url to where the package will be published | Y | - |
796
- | projectId | The nuget source id of the project | Y | - |
794
+ | sourceUrl | Url to where the package will be published | Y | - |
797
795
  | username | The username to nuget source | Y | - |
798
796
  | password | The password to nuget source | Y | - |
799
797
  | generatorCustomArgs | Custom arguments of the generator | N | - |
package/config.schema.yml CHANGED
@@ -357,18 +357,18 @@ targets:
357
357
  type: string
358
358
  version:
359
359
  type: string
360
- apiUrl:
360
+ sourceUrl:
361
361
  type: string
362
- projectId:
362
+ username:
363
363
  type: string
364
- token:
364
+ password:
365
365
  type: string
366
366
  required:
367
367
  - packageName
368
368
  - version
369
- - apiUrl
370
- - projectId
371
- - token
369
+ - sourceUrl
370
+ - username
371
+ - password
372
372
 
373
373
  definitions:
374
374
  # 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-90bc2acb.0",
3
+ "version": "13.2.0-feature-csharp-functions-34b6d98d.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",
@@ -2,8 +2,6 @@
2
2
 
3
3
  source $(dirname "$0")/../common.sh
4
4
 
5
- # TODO install dotnet, nuget
6
-
7
5
  cd out/$targetId
8
6
 
9
7
  # pack
@@ -12,11 +10,11 @@ dotnet build -c Release
12
10
  dotnet pack -c Release /p:Version=${version}
13
11
 
14
12
  # publish
15
- dotnet nuget add source "${apiUrl}/projects/${projectId}/packages/nuget/index.json" \
16
- --name gitlab \
13
+ dotnet nuget add source "${sourceUrl}" \
14
+ --name oasg \
17
15
  --username ${username} \
18
16
  --password ${password} \
19
17
  --store-password-in-clear-text
20
- dotnet nuget push "bin/Release/*.nupkg" --source gitlab
18
+ dotnet nuget push "bin/Release/*.nupkg" --source oasg
21
19
 
22
20
  cd ../..