generators/kotlin-server


id: generator-opts-server-kotlin-server title: Config Options for kotlin-serversidebar_label: kotlin-server


OptionDescriptionValuesDefault
sourceFoldersource folder for generated codesrc/main/kotlin
packageNameGenerated artifact package name.org.openapitools.server
apiSuffixsuffix for api classesApi
groupIdGenerated artifact package's organization (i.e. maven groupId).org.openapitools
artifactIdGenerated artifact id (name of jar).kotlin-server
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
librarylibrary template (sub-template)- ktor- ktor frameworkktor
featureAutoHeadAutomatically provide responses to HEAD requests for existing routes that have the GET verb defined.true
featureConditionalHeadersAvoid sending content if client already has same content, by checking ETag or LastModified properties.false
featureHSTSAvoid sending content if client already has same content, by checking ETag or LastModified properties.true
featureCORSKtor by default provides an interceptor for implementing proper support for Cross-Origin Resource Sharing (CORS). See enable-cors.org.false
featureCompressionAdds ability to compress outgoing content using gzip, deflate or custom encoder and thus reduce size of the response.true