-
-
Notifications
You must be signed in to change notification settings - Fork 35
rm depictEnum
#2697
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
rm depictEnum
#2697
Conversation
WalkthroughThe changes remove custom enum depiction logic from the documentation helpers and associated tests, relying instead on the enum handling provided by the updated Zod library. The changelog is updated to reflect this patch, and all related code and tests for the previous enum handling are deleted. Changes
Poem
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
express-zod-api/tests/__snapshots__/documentation-helpers.spec.ts.snap
is excluded by!**/*.snap
📒 Files selected for processing (3)
CHANGELOG.md
(1 hunks)express-zod-api/src/documentation-helpers.ts
(0 hunks)express-zod-api/tests/documentation-helpers.spec.ts
(0 hunks)
💤 Files with no reviewable changes (2)
- express-zod-api/tests/documentation-helpers.spec.ts
- express-zod-api/src/documentation-helpers.ts
⏰ Context from checks skipped due to timeout of 90000ms (2)
- GitHub Check: Analyze (javascript)
- GitHub Check: build (24.x)
🔇 Additional comments (1)
CHANGELOG.md (1)
7-8
: Changelog entry is clear and accurate
The description succinctly captures the removal of custom enum depiction overrides in favor of the improved Zod v3.25.45 implementation, aligning perfectly with the PR objective to remove thedepictEnum
function.
…rd compatibility (#2699) Partially reverts #2697 and #2698 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Documentation** - Updated changelog entry to clarify that the documentation generator now prioritizes Zod's native depiction for enums and literals. - **New Features** - Improved handling of enums and literals in generated documentation, ensuring more accurate type representation. - **Tests** - Added new test cases to validate the depiction of enums and literals in the documentation output. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit