Skip to content

Instantly share code, notes, and snippets.

@iskenxan
Created January 17, 2022 14:31
Show Gist options
  • Save iskenxan/f06d0326758b1f4c9ff0fa7419b5db29 to your computer and use it in GitHub Desktop.
Save iskenxan/f06d0326758b1f4c9ff0fa7419b5db29 to your computer and use it in GitHub Desktop.
Typescript schema validation with zod
[
{
"code": "too_small",
"minimum": 1,
"type": "string",
"inclusive": true,
"message": "Should be at least 1 characters",
"path": []
},
{
"code": "too_small",
"minimum": 8,
"type": "string",
"inclusive": true,
"message": "Should be at least 8 characters",
"path": []
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment