@team-supercharge/oasg 13.2.0-feature-csharp-functions-2881a5f8.0 → 14.0.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
@@ -771,31 +771,16 @@ describe('Auth', function () {
|
|
771
771
|
|-|-|-|-|
|
772
772
|
| fileName | Name of the generated file | N | `openapi.yaml` |
|
773
773
|
|
774
|
-
#### `csharp-functions`
|
775
|
-
|
776
|
-
```json
|
777
|
-
{
|
778
|
-
"id": "csharp-functions",
|
779
|
-
"type": "csharp-functions",
|
780
|
-
"source": "source-merged",
|
781
|
-
"sourceUrl": "https://api.nuget.org/v3/index.json",
|
782
|
-
"apiKey": "apiKey",
|
783
|
-
"generatorCustomArgs": "--additional-properties=packageName=$packageName"
|
784
|
-
}
|
785
|
-
```
|
786
|
-
|
787
|
-
|Parameter| Description| Required | Default |
|
788
|
-
|-|-|-|-|
|
789
|
-
| sourceUrl | Url to where the package will be published | Y | - |
|
790
|
-
| apiKey | Apikey of nuget source | Y | - |
|
791
|
-
| generatorCustomArgs | Custom arguments of the generator | N | - |
|
792
|
-
|
793
774
|
---
|
794
775
|
|
795
776
|
# Migration Guide
|
796
777
|
|
797
778
|
This section covers the breaking changes and their migrations across major version upgrades.
|
798
779
|
|
780
|
+
## From `13.x.x` to `14.0.0`
|
781
|
+
|
782
|
+
Several dependencies have been upgraded, and OASg now uses `node` version 20.15.0 and `npm` version 10 by default. If your project still uses `node@18`, you should upgrade first.
|
783
|
+
|
799
784
|
## From `12.x.x` to `13.0.1`
|
800
785
|
|
801
786
|
> ❗ Due to version `13.0.0` has been published before erroneously (then unpublished) to the NPM registry, this version of the artifact won't be available either as an NPM package or a Docker base image. Please use the `13.0.1` patch version instead.
|
package/bin/oasg
CHANGED
@@ -45,7 +45,6 @@ const DEFAULT_GENERATOR_MAPPING = {
|
|
45
45
|
"nestjs": { version: '7.0.1', generator: 'typescript-angular' },
|
46
46
|
"spring": { version: '7.0.1', generator: 'spring' },
|
47
47
|
"spring-kotlin": { version: '7.0.1', generator: 'kotlin-spring' },
|
48
|
-
"csharp-functions": { version: '7.0.1', generator: 'csharp-functions' },
|
49
48
|
// misc targets
|
50
49
|
"contract-testing": { version: '4.3.1', generator: 'typescript-node' },
|
51
50
|
"openapi": { version: undefined, generator: undefined },
|
package/config.schema.yml
CHANGED
@@ -24,7 +24,6 @@ properties:
|
|
24
24
|
- $ref: '#/targets/NestJS'
|
25
25
|
- $ref: '#/targets/OpenAPI'
|
26
26
|
- $ref: '#/targets/Flutter'
|
27
|
-
- $ref: '#/targets/CsharpFunctions'
|
28
27
|
required:
|
29
28
|
- targets
|
30
29
|
additionalProperties: false
|
@@ -347,20 +346,6 @@ targets:
|
|
347
346
|
- packageName
|
348
347
|
- repository
|
349
348
|
|
350
|
-
CsharpFunctions:
|
351
|
-
allOf:
|
352
|
-
- $ref: '#/targets/Base'
|
353
|
-
- properties:
|
354
|
-
type:
|
355
|
-
pattern: '^csharp-functions$'
|
356
|
-
sourceUrl:
|
357
|
-
type: string
|
358
|
-
apiKey:
|
359
|
-
type: string
|
360
|
-
required:
|
361
|
-
- sourceUrl
|
362
|
-
- apiKey
|
363
|
-
|
364
349
|
definitions:
|
365
350
|
# default
|
366
351
|
SourceOverrides:
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@team-supercharge/oasg",
|
3
|
-
"version": "
|
3
|
+
"version": "14.0.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",
|
@@ -15,8 +15,8 @@
|
|
15
15
|
"url": "git@gitlab.com:team-supercharge/oasg.git"
|
16
16
|
},
|
17
17
|
"engines": {
|
18
|
-
"node": "^
|
19
|
-
"npm": "^
|
18
|
+
"node": "^20.15",
|
19
|
+
"npm": "^10"
|
20
20
|
},
|
21
21
|
"files": [
|
22
22
|
"bin",
|
@@ -28,9 +28,9 @@
|
|
28
28
|
"dependencies": {
|
29
29
|
"@apidevtools/json-schema-ref-parser": "^10.1.0",
|
30
30
|
"@apidevtools/swagger-parser": "^10.1.0",
|
31
|
-
"@redocly/cli": "1.
|
32
|
-
"@stoplight/prism-cli": "
|
33
|
-
"@stoplight/spectral-cli": "6.
|
31
|
+
"@redocly/cli": "1.17.1",
|
32
|
+
"@stoplight/prism-cli": "5.8.2",
|
33
|
+
"@stoplight/spectral-cli": "6.11.1",
|
34
34
|
"ajv": "^8.12.0",
|
35
35
|
"command-exists": "^1.2.9",
|
36
36
|
"express": "^4.18.2",
|
@@ -39,11 +39,12 @@
|
|
39
39
|
"js-yaml": "^4.1.0",
|
40
40
|
"json-schema-merge-allof": "^0.8.1",
|
41
41
|
"openapi-typescript-validator-ext-ref": "^3.2.0-external-ref-support",
|
42
|
-
"swagger-ui-express": "^
|
42
|
+
"swagger-ui-express": "^5.0.1",
|
43
43
|
"yamljs": "^0.3.0",
|
44
44
|
"yargs": "^17.7.1"
|
45
45
|
},
|
46
46
|
"devDependencies": {
|
47
|
+
"@types/jest": "^29.5.12",
|
47
48
|
"execa": "^5.0.0",
|
48
49
|
"fs-extra": "^11.1.1",
|
49
50
|
"jest": "^29.5.0"
|
@@ -1,15 +0,0 @@
|
|
1
|
-
#/bin/bash
|
2
|
-
|
3
|
-
source $(dirname "$0")/../common.sh
|
4
|
-
|
5
|
-
rm -rf out/$targetId
|
6
|
-
mkdir -p out/$targetId
|
7
|
-
|
8
|
-
java -jar $binary generate \
|
9
|
-
-g $generatorId \
|
10
|
-
-i $openApiFile \
|
11
|
-
-t $templateDir \
|
12
|
-
-o out/$targetId \
|
13
|
-
-c $(dirname "$0")/generator-config.json \
|
14
|
-
-p "packageVersion=$version,packageName=$packageName" \
|
15
|
-
$generatorCustomArgs
|
@@ -1,15 +0,0 @@
|
|
1
|
-
#/bin/bash
|
2
|
-
|
3
|
-
source $(dirname "$0")/../common.sh
|
4
|
-
|
5
|
-
cd out/$targetId
|
6
|
-
|
7
|
-
# pack
|
8
|
-
dotnet restore
|
9
|
-
dotnet build -c Release
|
10
|
-
dotnet pack -c Release /p:Version=$version /p:IsPackable=true
|
11
|
-
|
12
|
-
# push
|
13
|
-
dotnet nuget push "src/**/bin/Release/*.nupkg" --api-key ${apiKey} --source ${sourceUrl}
|
14
|
-
|
15
|
-
cd ../..
|