You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I can not find a way to get enums to be generated in a way that are reused.
Based on some research, looks like we should be using @Schema(enumAsRef = true). But, it does not work.
I'd actually suggest that maybe this should be a global option. Wondering why is not the default... in the code you usually do not repeat the enums.
Hi!
I can not find a way to get enums to be generated in a way that are reused.
Based on some research, looks like we should be using
@Schema(enumAsRef = true)
. But, it does not work.I'd actually suggest that maybe this should be a global option. Wondering why is not the default... in the code you usually do not repeat the enums.
Spec ref: https://swagger.io/docs/specification/data-models/enums/
I tried these both:
They both generate something like:
expected:
The text was updated successfully, but these errors were encountered: