Skip to content

Zod schema descriptions are not included in the generated prompt #706

Description

@WoodyWoodsta

When component signatures are generated, descriptions included in the zod schema are not included in the prompt.

For example:

defineComponent({
  name: 'SpecialCard',
  description: 'A special card which renders plenty of information.',
  props: z.object({ myProp: z.string().describe('Use this property for...')}),
  component: ({ props }) => {},
})

This component generates:

SpecialCard(myProp: string) – A special card which renders plenty of information.

The "Use this property for..." is dropped.

Alternatively, we could include the details of the properties in the component description.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions