Skip to content

feat: suppress implicit safe integer bounds in markdown docs#18

Merged
CatchMe2 merged 2 commits intomainfrom
feat/suppress-safe-integer-bounds
Apr 24, 2026
Merged

feat: suppress implicit safe integer bounds in markdown docs#18
CatchMe2 merged 2 commits intomainfrom
feat/suppress-safe-integer-bounds

Conversation

@CatchMe2
Copy link
Copy Markdown
Owner

Suppress implicit safe integer bounds in generated docs

Problem

Zod automatically assigns Number.MIN_SAFE_INTEGER and Number.MAX_SAFE_INTEGER as implicit bounds for integer fields when no explicit min or max is defined.

These default bounds were being rendered in the generated markdown documentation as “Min value” and “Max value”, even though they do not represent meaningful user-defined constraints. This added unnecessary noise to the output.

Solution

Filter out these implicit Zod defaults during documentation generation.

@CatchMe2 CatchMe2 merged commit 4f53a5c into main Apr 24, 2026
4 checks passed
@CatchMe2 CatchMe2 deleted the feat/suppress-safe-integer-bounds branch April 24, 2026 09:38
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