- Task dependency resolution
- Gradle to 8.4
- Kotlin to 1.9.10
- Moshi to 1.15.0
- All dependencies
- OpenApiCodegen to 5.2.1 (https://github.com/OpenAPITools/openapi-generator/releases/tag/v5.2.1)
- Gradle to 7.1.1
- Support for Kotlin Multiplatform
kotlinx.datetime
date library
- Auto-hook support for Kotlin MPP.
- Auto-hook empty collection when searching for compileKotlin or compileJava.
- Added additional Kotlin keywords to be escaped (internal, external).
- Added option to force java compilation.
- Does not trigger java tasks when compileKotlin is in the project.
- Option to represent Array as ArrayList.
- Data type for type alias pointing to Maps and Arrays.
- Task additional properties are cleaned properly before each task. Custom properties are removed properly.
- Nested arrays and maps in arrays contain type.
Array<Array>
is now properly generated asArray<Array<Type>>
.
(jvm-retrofit)
an optional@Query
parameter marked as not null in case of Kotlin generator. Now it is nullable.(jvm-retrofit)
missing default value in a@Query
parameter if is present in the yaml file.
- @Path params are always first in operation.
- Option to force variables of Composed schema (oneOf and anyOf) as not required (nullable).
- Kotlin allOf inheritance.
- Not used constants.
- Fix of an error
Could not generate api file List is empty
caused if endpoint has no parameters after removing all from parameterremoveOperationParams
(occurred if this parameter is present).
- Introduced a new config parameter
ignoreEndpointStartingSlash
to ignore endpoint's starting slash in generated Retrofit API service class. SeeIgnoreStartingSlashLambda
for more details. - Introduced a new lambda
IgnoreStartingSlashLambda
({{#lambda.ignoreStartingSlash}}{{paramName}}{{/lambda.ignoreStartingSlash}}
) which removes word minus in a fragment if it's in it. - For rest of changes see all
2.0.0-xx
changelog messages.
- Fix of critical bug when
removeOperationParams
is used, then api function is not generated it correctly.
- Option to remove specific parameters from operations:
"removeOperationParams" to arrayOf("X-Access-Token", "Accept-Language", ...)
- OpenApi generator updated to release v4.2.3
- Enable multiple configuration files in one swagger task (see README.md).
- Tasks now contain additionalProperties setting (see README.md).
- Task configs can have all values null.
- Generator is safe with null parameters.
- Introduced a new lambda
RemoveMinusTextFromNameLambda
({{#lambda.removeMinusText}}{{paramName}}{{/lambda.removeMinusText}}
) which removes word minus in a fragment if it's in it. - New property to remove
minus
word from the header's property name:additionalProperties["removeMinusTextInHeaderProperty"] = true
. By defaultfalse
will be used.
- The
modelNameSuffix
has been added twice to generated code. It was caused by migration to OpenApi (this bug has been fixed in OpenApi, so we removed our fix.)
- Migrated from Swagger to OpenApi generator (https://github.com/OpenAPITools/openapi-generator).
- Merged Retrofit and Room generator together.
- Empty data class is defined as a String type alias.
- Changed anonymous enum names from * to NUMBER*.
- Added support for Room 2 (androidx).
- Added option to change array of composed to array of object (kotlin.Any).
- Added option to generate primitive aliases.
- Initial version