I have an OpenAPI spec with multiple enums:
SocialLinkType:
type: string
enum:
- FACEBOOK
- YOUTUBE
- INSTAGRAM
- TWITTER
- PINTEREST
- LINKEDIN
- TIKTOK
- TUMBLR
- WHATSAPP
- VIMEO
- SNAPCHAT
- APPLE
- ANDROID
ColorType:
type: string
enum:
- ACCENT_1
- ACCENT_2
- BACKGROUND_1
- BACKGROUND_2
- TEXT
- SOLID_BUTTON
- OUTLINE_BUTTON
The issue I'm facing is about ColorType. Unlike SocialLinkType it is not referenced from any other component described in OpenAPI spec. As a result ColorType Java enum is not generated, so my question is about forcing Swagger Codegen to generate Java code for every item in the spec.
Can this be achieved somehow?