Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for x-enumDescriptions extension #1359

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

federicobond
Copy link
Contributor

@federicobond federicobond commented Jan 6, 2025

This adds support for the x-enumDescriptions OpenAPI extension field as documented here:
https://redocly.com/docs/realm/author/reference/openapi-extensions/x-enum-descriptions

Redoc and Scalar support this extension and provide a better UX than text-based descriptions.

The change is fully backward-compatible. I added a new boolean setting ENUM_GENERATE_X_ENUM_DESCRIPTIONS to enable this feature. Let me know if this makes sense for you.

Copy link

codecov bot commented Jan 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.57%. Comparing base (5734744) to head (3c14118).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1359      +/-   ##
==========================================
+ Coverage   98.42%   98.57%   +0.15%     
==========================================
  Files          74       74              
  Lines        9139     9146       +7     
==========================================
+ Hits         8995     9016      +21     
+ Misses        144      130      -14     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

1 participant