You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the next features I would like to work on is a CLI to generate structs based on your ZogSchemas. This is a good first step for other generators based on the ZogSchemas such as but not limited to:
typescript types
Zod schemas
openapi specs
...
With that in mind I would like to pool you all on a few things:
Any other output you would like? (a part from the ones mentioned above)
Once you run the CLI should the generation be opt in or opt out? i.e should running the CLI automatically generate all corresponding structs unless your ZogSchema has some magic comment above it or only generate those that have that magic comment?
Ideas on the generated names for the structs. I think the best solution is to use standard naming convention for default generated names but allow the user to specify a struct name with a magic comment. For example, if no magic comment is set userSchema would generate a type User struct
The text was updated successfully, but these errors were encountered:
One of the next features I would like to work on is a CLI to generate structs based on your ZogSchemas. This is a good first step for other generators based on the ZogSchemas such as but not limited to:
With that in mind I would like to pool you all on a few things:
userSchema
would generate atype User struct
The text was updated successfully, but these errors were encountered: