generators/kotlin-spring


id: generator-opts-server-kotlin-spring title: Config Options for kotlin-springsidebar_label: kotlin-spring


OptionDescriptionValuesDefault
sourceFoldersource folder for generated codesrc/main/kotlin
packageNameGenerated artifact package name.org.openapitools
apiSuffixsuffix for api classesApi
groupIdGenerated artifact package's organization (i.e. maven groupId).org.openapitools
artifactIdGenerated artifact id (name of jar).openapi-spring
artifactVersionGenerated artifact's package version.1.0.0
enumPropertyNamingNaming convention for enum properties: 'camelCase', 'PascalCase', 'snake_case', 'UPPERCASE', and 'original'camelCase
serializationLibraryWhat serialization library to use: 'moshi' (default), or 'gson'moshi
parcelizeModelstoggle "@Parcelize" for generated modelsnull
serializableModelboolean - toggle "implements Serializable" for generated modelsnull
titleserver title name or client service nameOpenAPI Kotlin Spring
basePackagebase package (invokerPackage) for generated codeorg.openapitools
serverPortconfiguration the port in which the sever is to run on8080
modelPackagemodel package for generated codeorg.openapitools.model
apiPackageapi package for generated codeorg.openapitools.api
exceptionHandlergenerate default global exception handlers (not compatible with reactive. enabling reactive will disable exceptionHandler )true
gradleBuildFilegenerate a gradle build file using the Kotlin DSLtrue
swaggerAnnotationsgenerate swagger annotations to go alongside controllers and modelsfalse
serviceInterfacegenerate service interfaces to go alongside controllers. In most cases this option would be used to update an existing project, so not to override implementations. Useful to help facilitate the generation gap patternfalse
serviceImplementationgenerate stub service implementations that extends service interfaces. If this is set to true service interfaces will also be generatedfalse
useBeanValidationUse BeanValidation API annotations to validate data typestrue
reactiveuse coroutines for reactive behaviorfalse
interfaceOnlyWhether to generate only API interface stubs without the server files.false
librarylibrary template (sub-template)- spring-boot- Spring-boot Server application.spring-boot