Anyone familiar with a library which takes json sc...
# announcements
l
Anyone familiar with a library which takes json schema and generates kotlin classes?
m
l
Thanks @marlonlom I found that also... I'm specifically looking to generate kotlin classes.
p
How about using the serialization library kotlinx.serialization
l
Thanks @Pedro Pereira do you know if kotlinx.serialization handles json schema and not just regular json (difference)
c
As far as I know, KotlinX.Serialization doesn't support JSON Schema. Why do you need it?
m
l
@CLOVIS API contract is defined with json schema so I want to create a Gradle script which downloads schema and generates kotlin classes. I might need to do this myself with kotlin poet but prefer to find something already built...
c
Maybe Spring has something for that? Not sure.
m
But the last webpage i shared convert the schema yo java clases, un android studio you can layer pass that yo kotlin classes