Southclaws / supervillain

Converts Go structs to Zod schemas
MIT License
76 stars 6 forks source link

Omit fields from schema that are marked to be explicitly skipped. #4

Closed 8gian closed 1 year ago

8gian commented 1 year ago

Struct fields in Go can be annotated with json:"-" to be omitted from the JSON representation. Because these fields are omitted upon converting to JSON, they should also be omitted from the zod schema.