https://kotlinlang.org logo
Title
f

Fredrik Larsen

08/22/2019, 10:30 AM
Is anyone here successfully generating kotlin data classes from json schema in a pipeline? i.e. not using an android plugin
a

alex009

08/22/2019, 10:54 AM
yes, we use internal (for now) gradle plugin for generating. based on https://github.com/OpenAPITools/openapi-generator
f

Fredrik Larsen

08/22/2019, 10:56 AM
Thanks! How much work was it setting up the gradle plugin? Do you use the jar?
t

tddmonkey

08/22/2019, 11:25 AM
We do something similar
a

alex009

08/22/2019, 11:30 AM
day or two... we have only one class with some custom logic of arguments mapping and have custom resources with our files templates
we use gradle composite build (plugin compiles with project just like buildSrc)
t

tddmonkey

08/22/2019, 1:33 PM
We use this plugin with a custom set of templates https://github.com/int128/gradle-swagger-generator-plugin
f

Fredrik Larsen

08/23/2019, 7:46 AM
Thanks for the input!