bkbnio / kompendium

Ktor OpenAPI Spec Generator
https://bkbn.gitbook.io/kompendium
MIT License
159 stars 26 forks source link

Kompendium does not respect naming strategy #653

Open oSumAtrIX opened 3 weeks ago

oSumAtrIX commented 3 weeks ago

I do not know if the issue is something Kompendium can solve, but here is an outline of the issue:

For the Json serializer a naming strategy can be specified:

image

This allows the serialization and deserialization of keys in different casing. For example the schema

image

would serialize to

image

Though, Kompendium generates this spec without applying the naming strategy:

image

brizzbuzz commented 3 weeks ago

interesting, i had no idea that kotlinx serialization supported across the board naming strategies.

definitely a feature we should implement. thanks for reporting!