Skip to content

Openapi v3 fix duplicates in enums#2168

Merged
sdghchj merged 3 commits into
swaggo:v2from
rixlhq:openapi-v3-fix-duplicates-in-enums
May 15, 2026
Merged

Openapi v3 fix duplicates in enums#2168
sdghchj merged 3 commits into
swaggo:v2from
rixlhq:openapi-v3-fix-duplicates-in-enums

Conversation

@qeeqez

@qeeqez qeeqez commented May 6, 2026

Copy link
Copy Markdown

Fixes duplicates in Enum fields, using Swaggo V2 Openapi V3.1 Generator
Current generator generates Enum fields twice:

    PostType:
      enum:
      - image
      - video
      - video
      - image

PR includes the fix to avoid this.

Additionally, this PR contains proper OpenAPI V3.1 specs for loading enum objects as References

@sdghchj sdghchj merged commit db6574e into swaggo:v2 May 15, 2026
14 checks passed
@qeeqez qeeqez deleted the openapi-v3-fix-duplicates-in-enums branch May 16, 2026 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants