Fork me on GitHub
#reitit
<
2024-01-22
>
ray10:01:36

maybe I'm missing something obvious but is there a way with reitit & spec to have the request / response keys as camelCase but spec'd keys as kebeb-case? We are making all of our specs camelCase now and it's not good.

ray10:01:40

is it a spec problem that works with malli?

dharrigan10:01:56

This is what I do (in my little demo):

dharrigan10:01:13

Then your spec can be kebab-case and your request/response can be camelCase.

ray11:01:59

ha - nice! Thanks @U11EL3P9U thanks3

dharrigan11:01:19

You're most welcome 🙂

valerauko11:01:58

(as a side note I'm now rolling my own code for similar purposes because I've stepped on way too many way too painful performance landmines with csk)

ray12:01:19

thanks @UAEH11THP... in this case, it's just a swagger thing so not performance critical

👍 1