Commit ea65932
feat: add .describe() to top-level schemas
Add addTopLevelDescribe() post-processing transform to add .describe() calls
to top-level schema declarations based on their @description JSDoc tags.
ts-to-zod only adds .describe() to properties, not to the schema itself,
so this transform fills that gap.
- 109 top-level schemas now have .describe()
- Total .describe() calls: 335 (up from 226)
Example:
export const RequestParamsSchema = z.object({...})
.describe('Common params for any request.');
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent a06d2ff commit ea65932
File tree
2 files changed
+1245
-1059
lines changed- scripts
- src/generated
2 files changed
+1245
-1059
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
| 441 | + | |
441 | 442 | | |
442 | 443 | | |
443 | 444 | | |
| |||
692 | 693 | | |
693 | 694 | | |
694 | 695 | | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
695 | 744 | | |
696 | 745 | | |
697 | 746 | | |
| |||
0 commit comments