Replies: 6 comments
-
Same question |
Beta Was this translation helpful? Give feedback.
-
Are keys in Swagger JSON in some other case? I guess this library just pulls what's defined there and doesn't do transformations, which seems like a good thing. Depending on what you use, you might need to tell the swagger generator library to generate JSON definition with camelCase in mind. Where I work, we use .Net Core and Swashbuckle and we needed to tell Swashbuckle to generate properties as camelCase using |
Beta Was this translation helpful? Give feedback.
-
I have solved it by Example of hook to pass it to
|
Beta Was this translation helpful? Give feedback.
-
A little improvement for correct working with nested objects in schema
|
Beta Was this translation helpful? Give feedback.
-
A little improvement for correct working with refs in schema.
|
Beta Was this translation helpful? Give feedback.
-
Thank everyone for the suggested Still, when using them, there is a need to generate runtime transformations, otherwise the generated client will send data in camelCase but the server will not understand it as it expects data in snake_case. Fortunately, it is possible, as Though, generation of runtime transformation always has its cons.
|
Beta Was this translation helpful? Give feedback.
-
Is it possible to generate camelCase keys in interfaces ?
Beta Was this translation helpful? Give feedback.
All reactions