Skip to content

[Bug]: SubObject fields do not render their zod describe() values #4

@marr

Description

@marr

Reproduction

https://stackblitz.com/edit/ygd2zhbm?file=src%2FApp.vue

Describe the bug

Rendering objects with autoform has some issues.

  1. The label and description properties of the field-config object do not change how the field is rendered.
  2. The .describe() function on the sub-object schema does not render a custom label.

I would expect the rendered elements to contain customized labels, as this is how other inputs work. The documentation doesn't mention any caveats related to this either.

System Info

shadcn-vue 0.11.3

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions