You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/generators/kotlin.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
25
25
|collectionType|Option. Collection type to use|<dl><dt>**array**</dt><dd>kotlin.Array</dd><dt>**list**</dt><dd>kotlin.collections.List</dd></dl>|list|
26
26
|dateLibrary|Option. Date library to use|<dl><dt>**threetenbp-localdatetime**</dt><dd>Threetenbp - Backport of JSR310 (jvm only, for legacy app only)</dd><dt>**kotlinx-datetime**</dt><dd>kotlinx-datetime (preferred for multiplatform)</dd><dt>**string**</dt><dd>String</dd><dt>**java8-localdatetime**</dt><dd>Java 8 native JSR310 (jvm only, for legacy app only)</dd><dt>**java8**</dt><dd>Java 8 native JSR310 (jvm only, preferred for jdk 1.8+)</dd><dt>**threetenbp**</dt><dd>Threetenbp - Backport of JSR310 (jvm only, preferred for jdk < 1.8)</dd></dl>|java8|
27
27
|enumPropertyNaming|Naming convention for enum properties: 'camelCase', 'PascalCase', 'snake_case', 'UPPERCASE', and 'original'||original|
28
+
|explicitApi|Generates code with explicit access modifiers to comply with Kotlin Explicit API Mode.||false|
28
29
|failOnUnknownProperties|Fail Jackson de-serialization on unknown properties||false|
29
30
|generateOneOfAnyOfWrappers|Generate oneOf, anyOf schemas as wrappers.||false|
30
31
|generateRoomModels|Generate Android Room database models in addition to API models (JVM Volley library only)||false|
@@ -34,6 +35,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
34
35
|mapFileBinaryToByteArray|Map File and Binary to ByteArray (default: false)||false|
35
36
|modelMutable|Create mutable models||false|
36
37
|moshiCodeGen|Whether to enable codegen with the Moshi library. Refer to the [official Moshi doc](https://github.com/square/moshi#codegen) for more info.||false|
38
+
|nonPublicApi|Generates code with reduced access modifiers; allows embedding elsewhere without exposing non-public API calls to consumers.||false|
37
39
|nullableReturnType|Nullable return type||false|
38
40
|omitGradlePluginVersions|Whether to declare Gradle plugin versions in build files.||false|
39
41
|omitGradleWrapper|Whether to omit Gradle wrapper for creating a sub project.||false|
|mockall|Adds `#[automock]` from the mockall crate to api traits. This option is for 'reqwest-trait' library only||false|
26
27
|packageName|Rust package name (convention: lowercase).||openapi|
27
28
|packageVersion|Rust package version.||1.0.0|
28
29
|preferUnsignedInt|Prefer unsigned integers where minimum value is >= 0||false|
29
30
|supportAsync|If set, generate async function call instead. This option is for 'reqwest' library only||true|
30
-
|supportMiddleware|If set, add support for reqwest-middleware. This option is for 'reqwest' library only||false|
31
-
|supportMultipleResponses|If set, return type wraps an enum of all possible 2xx schemas. This option is for 'reqwest' library only||false|
32
-
|supportTokenSource|If set, add support for google-cloud-token. This option is for 'reqwest' library only and requires the 'supportAsync' option||false|
31
+
|supportMiddleware|If set, add support for reqwest-middleware. This option is for 'reqwest' and 'reqwest-trait' library only||false|
32
+
|supportMultipleResponses|If set, return type wraps an enum of all possible 2xx schemas. This option is for 'reqwest' and 'reqwest-trait' library only||false|
33
+
|supportTokenSource|If set, add support for google-cloud-token. This option is for 'reqwest' and 'reqwest-trait' library only and requires the 'supportAsync' option||false|
34
+
|topLevelApiClient|Creates a top level `Api` trait and `ApiClient` struct that contain all Apis. This option is for 'reqwest-trait' library only||false|
35
+
|useBonBuilder|Use the bon crate for building parameter types. This option is for the 'reqwest-trait' library only||false|
33
36
|useSingleRequestParameter|Setting this property to true will generate functions with a single argument containing all API endpoint parameters instead of one argument per parameter.||false|
34
37
|withAWSV4Signature|whether to include AWS v4 signature support||false|
0 commit comments