Skip to content

Commit 4396325

Browse files
committed
🔖 Create relese 2.0.0-alpha02
Preparation for a release version v2.0.0-alpha02. See the Changelog file for more details about this version
1 parent 288d299 commit 4396325

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Change Log
22
==========
3-
## 2.0.0-TBD (TBD)
3+
## 2.0.0-alpha02 (2019-01-21)
44

55
### Added
66
- Introduced a new labda `RemoveMinusTextFromNameLambda` (`{{#lambda.removeMinusText}}{{paramName}}{{/lambda.removeMinusText}}`) which removes word *minus* in a fragment if it's in it.

README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# OpenApi 3 Codegen / Swagger
22

3-
[ ![Download](https://api.bintray.com/packages/emanprague/maven/cz.eman.swagger.codegen/images/download.svg?version=1.1.0) ](https://bintray.com/emanprague/maven/cz.eman.swagger.codegen/1.1.0/link)
3+
[ ![Download](https://api.bintray.com/packages/emanprague/maven/cz.eman.swagger.codegen/images/download.svg?version=2.0.0-alpha02) ](https://bintray.com/emanprague/maven/cz.eman.swagger.codegen/2.0.0-alpha02/link)
44

55
The Swagger codegen contains a template-driven engine to generate documentation, code for Java, Kotlin and Android such like Retrofit and Room. It is a fork of the https://github.com/OpenAPITools/openapi-generator with modifications
66

@@ -17,7 +17,7 @@ buildscript {
1717

1818
// Kotlin Gradle DSL
1919
dependencies {
20-
classpath("cz.eman.swagger:swagger-codegen:2.0.0-alpha01")
20+
classpath("cz.eman.swagger:swagger-codegen:2.0.0-alpha02")
2121
}
2222
}
2323
```
@@ -33,6 +33,7 @@ plugins {
3333
#### 3. Configure Swagger Codegen plugin
3434

3535
##### 3.1 Retrofit - Kotlin
36+
Basic configuration in Kotlin Gradle DSL (use an additional properties what you need for your project):
3637
```Kotlin
3738
swagger {
3839
setInputSpec("${project.projectDir.absolutePath}/data/api.yaml")
@@ -50,6 +51,7 @@ swagger {
5051
additionalProperties["emptyDataClasses"] = false
5152
additionalProperties["generateAliasAsModel"] = true
5253
additionalProperties["composedArrayAsAny"] = true
54+
additionalProperties["removeMinusTextInHeaderProperty"] = true
5355
additionalProperties["generatePrimitiveTypeAlias"] = false
5456
additionalProperties["apiPackage"] = "cz.mypackage.service"
5557
additionalProperties["modelPackage"] = "cz.mypackage.model"
@@ -75,6 +77,7 @@ swagger {
7577
- `apiNameSuffix` - By this property you can define suffix to all api classes. E.g. `UserService`, ...
7678
- `apiPackage` - By this property you can define a package name for your service classes
7779
- `modelPackage` - By this property you can define a package name for your model classes
80+
- `removeMinusTextInHeaderProperty` - By this property you can enable to generate name of header property without text minus if it is present.
7881

7982
Other options can be found [here](https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator-maven-plugin/README.md).
8083

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
org.gradle.jvmargs=-Xmx1536m
22

3-
version=2.0.0-SNAPSHOT
3+
version=2.0.0-alpha02

0 commit comments

Comments
 (0)