Skip to content

fix(generate-markdown): display output type for transform schemas#20

Merged
CatchMe2 merged 2 commits into
mainfrom
fix/markdown-output-type-from-output-schema
May 19, 2026
Merged

fix(generate-markdown): display output type for transform schemas#20
CatchMe2 merged 2 commits into
mainfrom
fix/markdown-output-type-from-output-schema

Conversation

@CatchMe2
Copy link
Copy Markdown
Owner

  • Use outputSchema.type (with inputSchema.type as fallback) when rendering the Type: field in generated markdown docs, so transform-based schemas like z.stringbool() display their output type (boolean) rather than their input type (string)
  • Add z.stringbool().default(false) test case to the markdown generation test
  • Fix z.number() test schemas to use stringToNumberSchema / z.coerce.number() — env vars are always string | undefined, bare z.number() schemas were misleading

@CatchMe2 CatchMe2 merged commit c7e8f5a into main May 19, 2026
4 checks passed
@CatchMe2 CatchMe2 deleted the fix/markdown-output-type-from-output-schema branch May 19, 2026 09:11
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