Skip to content

Commit 0869730

Browse files
committed
add documentation
1 parent 86def9a commit 0869730

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinSpringServerCodegen.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,11 @@ public KotlinSpringServerCodegen() {
247247
addSwitch(USE_RESPONSE_ENTITY,
248248
"Whether (when false) to return actual type (e.g. List<Fruit>) and handle non-happy path responses via exceptions flow or (when true) return entire ResponseEntity (e.g. ResponseEntity<List<Fruit>>). If disabled, method are annotated using a @ResponseStatus annotation, which has the status of the first response declared in the Api definition",
249249
useResponseEntity);
250+
addOption(X_KOTLIN_IMPLEMENTS_SKIP, "A list of fully qualified interfaces that should NOT be implemented despite their presence in vendor extension `x-kotlin-implements`", "empty array");
251+
addOption(X_KOTLIN_IMPLEMENTS_FIELDS_SKIP, "A list of fields per schema name that should NOT be created with `override` keyword despite their presence in vendor extension `x-kotlin-implements-fields` for the schema", "empty map of arrays by schema names");
252+
addOption(SCHEMA_IMPLEMENTS, "A list of interfaces per schema name that should be implemented (serves similar purpose as `x-kotlin-implements`, but is fully decoupled from the api spec)", "empty array");
253+
addOption(SCHEMA_IMPLEMENTS_FIELDS, "A list of fields per schema name that should be prepended with `override` (serves similar purpose as `x-kotlin-implements-fields`, but is fully decoupled from the api spec)",
254+
"empty map of arrays by schema names");
250255
supportedLibraries.put(SPRING_BOOT, "Spring-boot Server application.");
251256
supportedLibraries.put(SPRING_CLOUD_LIBRARY,
252257
"Spring-Cloud-Feign client with Spring-Boot auto-configured settings.");

0 commit comments

Comments
 (0)