Skip to content

Support CLI Command to Generate Zod Schema Representation #166

@jenny-s51

Description

@jenny-s51

Currently, tsDocGen.js generates a JSON representation of TypeScript/TSX component declarations, extracting prop types, interfaces, and metadata. It would be valuable to support an alternate output mode that generates Zod schema representations of the same props/types/interfaces.

AI-assisted tools such as Cursor often generate or modify code dynamically, which can introduce type mismatches or invalid prop values that TS alone won’t catch at runtime. Zod schemas enable runtime validation of data and props, so AI-generated or user-supplied values are thoroughly checked before being passed to components. This provides immediate feedback during development such that PatternFly components can be correctly implemented within AI-assisted workflows.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions