Hi! I just released KReplica, a code generation to...
# ksp
r
Hi! I just released KReplica, a code generation tool that seeks to make it easier to manage multiple DTO variants from a single interface: a base DTO, a create request DTO, and a patch request DTO. It can also optionally automatically create value classes and versioned schemas. That said, I think the most useful feature of KReplica is how it generates sealed interfaces. Allowing you to use exhaustive
when
statements to filter through all schema types, filtering by a specific schema version, or filtering by a specific schema variant (e.g. base DTOs). There's a Readme with more info. I hope someone could comment if the project seems interesting and/or if the README is understandable. There's a lot of examples, but just the first two examples are important to understanding it. https://github.com/AvaileDev/KReplica
👍 1