Suppose I have an OpenAPI spec .yaml file with the following properties:
....
My_Model:
description: 'Model to do some work'
type: object
....
When I generate it to Kotlin code, using openapi-generator, it is adding the description into Javadoc part:
/**
* Model to do some work
*/
data class MyModel(
....
What I want from generator is to add the description into swagger annotation also (or only):
....
@Schema(description = "Model to do some work")
data class MyModel(
....
Is there any setting or another generator library/software supporting this? The same case is true not only for description, but also for examples. Need to work for fields too.