@team-supercharge/oasg 18.2.0 → 18.2.1-temp-feat-spring-boot-4.956dbdab
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 +9 -7
- package/bin/oasg +5 -6
- package/config.schema.yml +4 -0
- package/package.json +4 -2
- package/targets/feign/.mvn/wrapper/maven-wrapper.jar +0 -0
- package/targets/feign/.mvn/wrapper/maven-wrapper.properties +4 -2
- package/targets/feign/generate.sh +14 -1
- package/targets/feign/generator-config.json +5 -9
- package/targets/feign/mvnw +196 -168
- package/targets/feign-kotlin/.mvn/wrapper/maven-wrapper.jar +0 -0
- package/targets/feign-kotlin/.mvn/wrapper/maven-wrapper.properties +4 -2
- package/targets/feign-kotlin/generate.sh +15 -1
- package/targets/feign-kotlin/generator-config.json +5 -8
- package/targets/feign-kotlin/mvnw +196 -168
- package/targets/feign-kotlin/templates/libraries/spring-cloud/pom-sb4.mustache +241 -0
- package/targets/msw/templates/modelOneOf.mustache +7 -0
- package/targets/plain-java/.mvn/wrapper/maven-wrapper.jar +0 -0
- package/targets/plain-java/.mvn/wrapper/maven-wrapper.properties +4 -2
- package/targets/plain-java/generate.sh +13 -1
- package/targets/plain-java/generator-config.json +4 -5
- package/targets/plain-java/mvnw +196 -168
- package/targets/python/generate.sh +6 -1
- package/targets/python-legacy/generate.sh +6 -1
- package/targets/spring/.mvn/wrapper/maven-wrapper.jar +0 -0
- package/targets/spring/.mvn/wrapper/maven-wrapper.properties +4 -2
- package/targets/spring/generate.sh +13 -1
- package/targets/spring/generator-config.json +5 -7
- package/targets/spring/mvnw +196 -168
- package/targets/spring-kotlin/.mvn/wrapper/maven-wrapper.jar +0 -0
- package/targets/spring-kotlin/.mvn/wrapper/maven-wrapper.properties +4 -2
- package/targets/spring-kotlin/generate.sh +13 -1
- package/targets/spring-kotlin/generator-config.json +5 -6
- package/targets/spring-kotlin/mvnw +196 -168
- package/targets/feign/.mvn/wrapper/MavenWrapperDownloader.java +0 -117
- package/targets/feign/templates/beanValidation.mustache +0 -2
- package/targets/feign/templates/formParams.mustache +0 -3
- package/targets/feign-kotlin/.mvn/wrapper/MavenWrapperDownloader.java +0 -117
- package/targets/plain-java/.mvn/wrapper/MavenWrapperDownloader.java +0 -117
- package/targets/spring/.mvn/wrapper/MavenWrapperDownloader.java +0 -117
- package/targets/spring-kotlin/.mvn/wrapper/MavenWrapperDownloader.java +0 -117
package/README.md
CHANGED
|
@@ -140,15 +140,15 @@ The table below gives an overview of the changes (breaking, non-breaking, bug fi
|
|
|
140
140
|
| `dotnet-system-text-json` |🆕➖|
|
|
141
141
|
| `dotnet-webapi` |✨ |➖ |🆕➖|
|
|
142
142
|
| `dotnet-webapi-system-text-json` |🆕➖|
|
|
143
|
-
| `feign`
|
|
144
|
-
| `feign-kotlin`
|
|
145
|
-
| `plain-java`
|
|
143
|
+
| `feign` |🐛 |🐛 |✨ |➖ |➖ |➖ |➖ |➖ |✨ |💥 |💥 |➖ |➖ |🐛 |🐛 |🆕 |
|
|
144
|
+
| `feign-kotlin` |🐛 |🐛 |✨ |➖ |➖ |➖ |➖ |➖ |🆕 |
|
|
145
|
+
| `plain-java` |🐛 |🐛 |🆕 |
|
|
146
146
|
| `flutter` |➖ |➖ |➖ |➖ |➖ |🆕 |
|
|
147
147
|
| `ios` |➖ |➖ |➖ |➖ |➖ |💥 |🐛 |➖ |➖ |➖ |✨ |➖ |💥 |➖ |➖ |✨ |🆕 |
|
|
148
148
|
| `apple-swift` |➖ |➖ |🆕 |
|
|
149
149
|
| `kmp` |✨ |✨ |➖ |➖ |🆕 |
|
|
150
|
-
| `python`
|
|
151
|
-
| `python-legacy`
|
|
150
|
+
| `python` |🐛 |➖ |🆕 |
|
|
151
|
+
| `python-legacy` |🐛 |➖ |💥 |➖ |🐛 |💥 |➖ |➖ |➖ |➖ |➖ |➖ |➖ |➖ |🆕 |
|
|
152
152
|
| `react` |💥 |➖ |🐛 |🐛 |➖ |💥 |➖ |➖ |➖ |➖ |➖ |➖ |➖ |➖ |➖ |➖ |➖ |🆕 |
|
|
153
153
|
| `typescript-axios` |✨ |➖ |🆕 |
|
|
154
154
|
| `typescript-fetch` |✨ |➖ |🆕 |
|
|
@@ -156,8 +156,8 @@ The table below gives an overview of the changes (breaking, non-breaking, bug fi
|
|
|
156
156
|
| `nestjs` |✨ |🐛 |💥 |💥 |➖ |💥 |✨ |➖ |➖ |🐛 |➖ |➖ |✨ |🆕 |
|
|
157
157
|
| `python-fastapi` |➖ |➖ |➖ |➖ |🆕 |
|
|
158
158
|
| `python-fastapi-raw-request` |➖ |➖ |➖ |➖ |🆕 |
|
|
159
|
-
| `spring`
|
|
160
|
-
| `spring-kotlin`
|
|
159
|
+
| `spring` |🐛 |🐛 |✨ |➖ |➖ |➖ |➖ |➖ |✨ |💥 |💥 |➖ |➖ |➖ |✨ |➖ |🆕 |
|
|
160
|
+
| `spring-kotlin` |🐛 |✨ |✨ |➖ |➖ |➖ |➖ |➖ |✨ |💥 |💥 |➖ |➖ |🐛 |✨ |➖ |🆕 |
|
|
161
161
|
| **Misc Targets** | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 |
|
|
162
162
|
| `contract-testing` |➖ |➖ |➖ |➖ |➖ |➖ |➖ |➖ |➖ |➖ |➖ |➖ |➖ |➖ |🆕 |
|
|
163
163
|
| `openapi` |➖ |➖ |➖ |➖ |➖ |➖ |💥 |➖ |➖ |✨ |➖ |🆕 |
|
|
@@ -907,6 +907,7 @@ TBD
|
|
|
907
907
|
|-|-|-|-|
|
|
908
908
|
| packageName | Package nem for the project (convention: snake_case) | Y | - |
|
|
909
909
|
| repositoryUrl | URL of the PyPI repository | Y | - |
|
|
910
|
+
| projectName | Internal project name, inherits value of packageName (advised to keep the same) | N | $packageName |
|
|
910
911
|
|
|
911
912
|
Publishing the PyPI packages is done with Twine. For authentication against the PiPI repository you need to set the `TWINE_USERNAME` and `TWINE_PASSWORD` environment variables.
|
|
912
913
|
|
|
@@ -926,6 +927,7 @@ Publishing the PyPI packages is done with Twine. For authentication against the
|
|
|
926
927
|
|-|-|-|-|
|
|
927
928
|
| packageName | Package nem for the project (convention: snake_case) | Y | - |
|
|
928
929
|
| repositoryUrl | URL of the PyPI repository | Y | - |
|
|
930
|
+
| projectName | Internal project name, inherits value of packageName (advised to keep the same) | N | $packageName |
|
|
929
931
|
|
|
930
932
|
> ⚠️ Using Pydantic v1 for legacy reasons, this target will be discontinued.
|
|
931
933
|
|
package/bin/oasg
CHANGED
|
@@ -38,9 +38,9 @@ const DEFAULT_GENERATOR_MAPPING = {
|
|
|
38
38
|
// client targets
|
|
39
39
|
"android": { version: '7.17.0', generator: 'kotlin' },
|
|
40
40
|
"angular": { version: '7.11.0', generator: 'typescript-angular' },
|
|
41
|
-
"feign": { version: '7.
|
|
42
|
-
"feign-kotlin": { version: '7.
|
|
43
|
-
"plain-java": { version: '7.
|
|
41
|
+
"feign": { version: '7.22.0', generator: 'spring' },
|
|
42
|
+
"feign-kotlin": { version: '7.22.0', generator: 'kotlin-spring' },
|
|
43
|
+
"plain-java": { version: '7.22.0', generator: 'java' },
|
|
44
44
|
"flutter": { version: '7.0.1', generator: 'dart-dio' },
|
|
45
45
|
"ios": { version: '7.0.1', generator: 'swift5' },
|
|
46
46
|
"apple-swift": { version: undefined, generator: undefined },
|
|
@@ -52,8 +52,8 @@ const DEFAULT_GENERATOR_MAPPING = {
|
|
|
52
52
|
"typescript-fetch": { version: '7.11.0', generator: 'typescript-fetch' },
|
|
53
53
|
// server targets
|
|
54
54
|
"nestjs": { version: '7.0.1', generator: 'typescript-angular' },
|
|
55
|
-
"spring": { version: '7.
|
|
56
|
-
"spring-kotlin": { version: '7.
|
|
55
|
+
"spring": { version: '7.22.0', generator: 'spring' },
|
|
56
|
+
"spring-kotlin": { version: '7.22.0', generator: 'kotlin-spring' },
|
|
57
57
|
"python-fastapi": { version: '7.8.0', generator: 'python-fastapi' },
|
|
58
58
|
"python-fastapi-raw-request": { version: '7.0.1', generator: 'python-fastapi' },
|
|
59
59
|
"dotnet": { version: '7.11.0', generator: 'csharp-functions' },
|
|
@@ -741,4 +741,3 @@ function determineArtifactVersion(argv) {
|
|
|
741
741
|
function determinePreRelease(argv) {
|
|
742
742
|
return argv.preRelease ? true : false;
|
|
743
743
|
}
|
|
744
|
-
|
package/config.schema.yml
CHANGED
|
@@ -344,6 +344,8 @@ targets:
|
|
|
344
344
|
type: string
|
|
345
345
|
repositoryUrl:
|
|
346
346
|
type: string
|
|
347
|
+
projectName:
|
|
348
|
+
type: string
|
|
347
349
|
required:
|
|
348
350
|
- packageName
|
|
349
351
|
- repositoryUrl
|
|
@@ -358,6 +360,8 @@ targets:
|
|
|
358
360
|
type: string
|
|
359
361
|
repositoryUrl:
|
|
360
362
|
type: string
|
|
363
|
+
projectName:
|
|
364
|
+
type: string
|
|
361
365
|
required:
|
|
362
366
|
- packageName
|
|
363
367
|
- repositoryUrl
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@team-supercharge/oasg",
|
|
3
|
-
"version": "18.2.
|
|
3
|
+
"version": "18.2.1-temp-feat-spring-boot-4.956dbdab",
|
|
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",
|
|
@@ -48,6 +48,8 @@
|
|
|
48
48
|
"@types/jest": "^29.5.12",
|
|
49
49
|
"execa": "^5.0.0",
|
|
50
50
|
"fs-extra": "^11.1.1",
|
|
51
|
-
"jest": "^29.5.0"
|
|
51
|
+
"jest": "^29.5.0",
|
|
52
|
+
"jest-html-reporter": "^4.4.0",
|
|
53
|
+
"jest-junit": "^17.0.0"
|
|
52
54
|
}
|
|
53
55
|
}
|
|
Binary file
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
wrapperVersion=3.3.4
|
|
2
|
+
distributionType=bin
|
|
3
|
+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.16/apache-maven-3.9.16-bin.zip
|
|
4
|
+
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.3.4/maven-wrapper-3.3.4.jar
|
|
@@ -5,13 +5,26 @@ source $(dirname "$0")/../common.sh
|
|
|
5
5
|
rm -rf out/$targetId
|
|
6
6
|
mkdir -p out/$targetId
|
|
7
7
|
|
|
8
|
+
properties=(
|
|
9
|
+
"artifactId=${artifactId}"
|
|
10
|
+
"groupId=${groupId}"
|
|
11
|
+
"artifactVersion=${version}"
|
|
12
|
+
"basePackage=${basePackage}"
|
|
13
|
+
"apiPackage=${basePackage}.api"
|
|
14
|
+
"modelPackage=${basePackage}.model"
|
|
15
|
+
"configPackage=${basePackage}.config"
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
props=$(IFS=,; echo "${properties[*]}")
|
|
19
|
+
|
|
8
20
|
java -jar $binary generate \
|
|
9
21
|
-g $generatorId \
|
|
10
22
|
-i $openApiFile \
|
|
11
23
|
-t $templateDir \
|
|
12
24
|
-o out/$targetId \
|
|
13
25
|
-c $(dirname "$0")/generator-config.json \
|
|
14
|
-
-p "
|
|
26
|
+
-p "$props" \
|
|
27
|
+
$generatorCustomArgs
|
|
15
28
|
|
|
16
29
|
cd out/$targetId
|
|
17
30
|
cp $(dirname "$0")/mvnw .
|
|
@@ -1,22 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"library": "spring-cloud",
|
|
3
|
-
"dateLibrary": "java8",
|
|
4
|
-
"java8": true,
|
|
5
3
|
"useTags": true,
|
|
6
4
|
"hideGenerationTimestamp": true,
|
|
7
5
|
"booleanGetterPrefix": "is",
|
|
8
|
-
"generateForOpenFeign": true,
|
|
9
|
-
"removeEnumValuePrefix": false,
|
|
10
6
|
"documentationProvider": "none",
|
|
11
7
|
"annotationLibrary": "none",
|
|
12
|
-
"useSpringBoot3":
|
|
8
|
+
"useSpringBoot3": false,
|
|
9
|
+
"useSpringBoot4": true,
|
|
10
|
+
"useJackson3": true,
|
|
13
11
|
"typeMappings": {
|
|
14
|
-
"OffsetDateTime": "
|
|
15
|
-
"Date": "java.time.LocalDate"
|
|
12
|
+
"OffsetDateTime": "Instant"
|
|
16
13
|
},
|
|
17
14
|
"importMappings": {
|
|
18
|
-
"
|
|
19
|
-
"java.util.Date": "java.time.LocalDate"
|
|
15
|
+
"OffsetDateTime": "java.time.Instant"
|
|
20
16
|
},
|
|
21
17
|
"inlineSchemaOptions": {
|
|
22
18
|
"ARRAY_ITEM_SUFFIX": "",
|