Skip to content

[feat] handle dash of input name in form builder ui #75

@vittxr

Description

@vittxr

Setting an input name with a dash generates an invalid Zod form schema

Image

using dash in names will generates:

const formSchema = z.object({
  map - name: z.string().min(1),
  map - farm: z.string(),
  map - vehicle: z.string(),
  map - files: z.string()
});

I think the name input in the builder UI shouldn't allow dashes or should just replace them with underlines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions