Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add required arguments to create query validation when using blitz generate all #96

Closed
agustif opened this issue Apr 21, 2021 · 2 comments

Comments

@agustif
Copy link
Contributor

agustif commented Apr 21, 2021

What do you want and why?

I would like zod validations to be auto-generated too
The more information the better!

so when running:
`blitz generate all photo name:string slug:string

const CreatePhoto = z
  .object({
    name: z.string(),
    slug: z.string(),,
  })
  .nonstrict()

Instead of

const CreatePhoto = z
  .object({
    name: z.string()
  })
  .nonstrict()

So an app compiles after generator run, maybe this has been discarded bc bad idea idk, couldn't find any issue about it

@flybayer
Copy link
Member

This will be fixed by blitz-js/blitz#2134!

@MrLeebo
Copy link
Member

MrLeebo commented Jul 15, 2021

Closing this as a duplicate of the linked PR

@MrLeebo MrLeebo closed this as completed Jul 15, 2021
@itsdillon itsdillon transferred this issue from blitz-js/blitz Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants