Closed mmaryo closed 8 years ago
Yea, that's not really valid. Try using http://editor.swagger.io which will give you some interactive feedback on the validity of your spec. What you listed first is correct.
I use swagger.json to generate javascript API Client and Models classes
If I have 2 classes use OrderTypeEnum, it will generate ClassAOrderTypeEnum ClassBOrderTypeEnum
It's not good
Please read the README. If you don't like the generation, you can choose how to handle it. You can even disable enums and use strings, it's in the options.
ok thanks for your replay
Hi
I use Spring boot, swagger-maven-plugin and springfox-swagger2 with last versions
I just want to have enums in my definitions
public class OrderDto { private String id; private OrderTypeEnum type;
Currently :
But I want someting like this :
Have you an idea ?