Open magiepooh opened 6 years ago
Kotshi is an annotations processor that generates Moshi adapters from immutable Kotlin data classes. https://github.com/ansman/kotshi
Kotshi
Codegen for Kotlin uses Moshi, but Kotshi is faster than using Moshi.
generate -i swagger.yaml -l kotlin -o out -D useKotshi=true
Does kotshi require and only use a data class?
Kotshi doesn't care about if it's a data class or not, but it does require a constructor with all the properties to be present, like in a data class.
Moshi now has its own codegen:
Description
Kotshi
is an annotations processor that generates Moshi adapters from immutable Kotlin data classes. https://github.com/ansman/kotshiCodegen for Kotlin uses Moshi, but Kotshi is faster than using Moshi.
Suggest a fix/enhancement
generate -i swagger.yaml -l kotlin -o out -D useKotshi=true