@team-supercharge/oasg 4.2.0 → 4.4.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/CHANGELOG.md CHANGED
@@ -2,6 +2,29 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [4.4.0](https://gitlab.com/team-supercharge/oasg/compare/v4.3.1...v4.4.0) (2022-05-09)
6
+
7
+
8
+ ### Features
9
+
10
+ * set uppercase enum property naming for spring targets ([8898d42](https://gitlab.com/team-supercharge/oasg/commit/8898d42313035edc09308748176ea7b5f393ccca))
11
+ * turn off removing enum prefixes for spring and spring-kotlin targets ([db99309](https://gitlab.com/team-supercharge/oasg/commit/db993096cecb7e51b9006e867d9ae19182149559))
12
+
13
+ ### [4.3.1](https://gitlab.com/team-supercharge/oasg/compare/v4.3.0...v4.3.1) (2022-04-27)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * **kotlin-spring:** attach sources jar if exists ([8e60f41](https://gitlab.com/team-supercharge/oasg/commit/8e60f41d0f913a140c505ee9851f345f0bc0cf8a))
19
+
20
+ ## [4.3.0](https://gitlab.com/team-supercharge/oasg/compare/v4.2.0...v4.3.0) (2022-04-27)
21
+
22
+
23
+ ### Features
24
+
25
+ * **kotlin-spring:** adds common generator config ([c38998f](https://gitlab.com/team-supercharge/oasg/commit/c38998fdfc2b09d10c5b54ffdb6a3bd776c44790))
26
+ * **kotlin-spring:** attach sources jar if exists ([15f6fc3](https://gitlab.com/team-supercharge/oasg/commit/15f6fc3ee176185d0cf906784fb4429414a738a7))
27
+
5
28
  ## [4.2.0](https://gitlab.com/team-supercharge/oasg/compare/v4.1.0...v4.2.0) (2022-04-11)
6
29
 
7
30
 
package/bin/oasg CHANGED
@@ -31,7 +31,7 @@ const DEFAULT_GENERATOR_VERSION_MAPPING = {
31
31
  "react-native": '4.3.1',
32
32
  "angular": '4.3.1',
33
33
  "spring": '4.3.1',
34
- "spring-kotlin": '4.3.1',
34
+ "spring-kotlin": '5.4.0',
35
35
  "stubby": '4.3.1',
36
36
  "feign": '4.3.1',
37
37
  "python": '5.4.0', // python generation does not work with 4.3.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-supercharge/oasg",
3
- "version": "4.2.0",
3
+ "version": "4.4.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",
@@ -7,6 +7,8 @@
7
7
  "skipDefaultInterface": true,
8
8
  "useTags": true,
9
9
  "hideGenerationTimestamp": true,
10
+ "enumPropertyNaming": "UPPERCASE",
11
+ "removeEnumValuePrefix": false,
10
12
  "typeMappings": {
11
13
  "OffsetDateTime": "Instant"
12
14
  },
@@ -11,6 +11,12 @@ echo Deploying ${artifactId}-${version}.jar to ${mavenRepoUrl}
11
11
 
12
12
  jarName=target/${artifactId}-${version}.jar
13
13
 
14
+ sourcesJarName=target/${artifactId}-${version}-sources.jar
15
+ attachSources=""
16
+ if [ -f ${sourcesJarName} ]; then
17
+ attachSources="-Dsources=${sourcesJarName}"
18
+ fi
19
+
14
20
  ./mvnw deploy:deploy-file -e -s settings.xml \
15
21
  -Durl=${mavenRepoUrl} \
16
22
  -DrepositoryId=target \
@@ -18,5 +24,7 @@ jarName=target/${artifactId}-${version}.jar
18
24
  -Dpom=pom.xml \
19
25
  -DgroupId=${groupId} \
20
26
  -DartifactId=${artifactId} \
21
- -Dversion=${version}
27
+ -Dversion=${version} \
28
+ ${attachSources}
29
+
22
30
  cd ../..
@@ -2,5 +2,15 @@
2
2
  "library": "spring-boot",
3
3
  "gradleBuildFile": false,
4
4
  "interfaceOnly": true,
5
- "useTags": true
5
+ "useTags": true,
6
+ "enumPropertyNaming": "UPPERCASE",
7
+ "removeEnumValuePrefix": false,
8
+ "typeMappings": {
9
+ "DateTime": "java.time.Instant",
10
+ "OffsetDateTime": "java.time.Instant"
11
+ },
12
+ "importMappings": {
13
+ "DateTime": "java.time.Instant",
14
+ "java.time.OffsetDateTime": "java.time.Instant"
15
+ }
6
16
  }
@@ -11,6 +11,12 @@ echo Deploying ${artifactId}-${version}.jar to ${mavenRepoUrl}
11
11
 
12
12
  jarName=target/${artifactId}-${version}.jar
13
13
 
14
+ sourcesJarName=target/${artifactId}-${version}-sources.jar
15
+ attachSources=""
16
+ if [ -f ${sourcesJarName} ]; then
17
+ attachSources="-Dsources=${sourcesJarName}"
18
+ fi
19
+
14
20
  ./mvnw deploy:deploy-file -e -s settings.xml \
15
21
  -Durl=${mavenRepoUrl} \
16
22
  -DrepositoryId=target \
@@ -18,5 +24,7 @@ jarName=target/${artifactId}-${version}.jar
18
24
  -Dpom=pom.xml \
19
25
  -DgroupId=${groupId} \
20
26
  -DartifactId=${artifactId} \
21
- -Dversion=${version}
27
+ -Dversion=${version} \
28
+ ${attachSources}
29
+
22
30
  cd ../..