Skip to content

Using zod to generate table schema  #264

@salehi-hassan

Description

@salehi-hassan

Hey mswjs/data team,

I'm wondering if you have any plan to bring zod validation into table :) Something like this.

const PostSchema = {
  dto: z.object({
    id: z.string().uuid().describe('primaryKey'),
    title: z.string(),
    body: z.string().optional().nullable()
  })
}
const PostTable = generateTable(PostSchema.dto)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions