LearnNewsExamplesServices
Frontmatter
id7500
titleSimplify Description Handling in Zod Schema Generation
stateClosed
labels
enhancementai
assigneestobiu
createdAtOct 15, 2025, 4:07 PM
updatedAtOct 15, 2025, 4:07 PM
githubUrlhttps://github.com/neomjs/neo/issues/7500
authortobiu
commentsCount0
parentIssue7477
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 15, 2025, 4:07 PM

Simplify Description Handling in Zod Schema Generation

Closed v11.0.0 enhancementai
tobiu
tobiu commented on Oct 15, 2025, 4:07 PM

The current implementation of describe() calls in buildZodSchemaFromResponse and buildOutputZodSchema can be simplified for better consistency and readability. This ticket aims to centralize the application of descriptions to Zod schemas.

Acceptance Criteria

  1. buildZodSchemaFromResponse is refactored to apply schema.description to the generated zodSchema consistently for all types.
  2. buildOutputZodSchema is refactored to ensure descriptions are applied correctly to the wrapped object for text/plain responses.
tobiu assigned to @tobiu on Oct 15, 2025, 4:07 PM
tobiu added the enhancement label on Oct 15, 2025, 4:07 PM
tobiu added the ai label on Oct 15, 2025, 4:07 PM
tobiu added parent issue #7477 on Oct 15, 2025, 4:07 PM
tobiu referenced in commit f12a9de - "Simplify Description Handling in Zod Schema Generation #7500" on Oct 15, 2025, 4:07 PM
tobiu closed this issue on Oct 15, 2025, 4:07 PM