We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a binary file field i use z.string() to express so i get the json is that
{ type: 'object', properties: { file: {type: string} }, required: [ 'file' ], additionalProperties: false }
but i expect to get with format: binary like this, what can i do for it?
{ type: 'object', properties: { file: {type: string, format: binary} }, required: [ 'file' ], additionalProperties: false }
The text was updated successfully, but these errors were encountered:
Hello! There is currently no way to tell Zod that a string contains binary, so there's nothing I can do.
However, I have opened a PR for base64 validation in Zod exactly due to this issue.
colinhacks/zod#3047
Closing this as a duplicate of #95
Sorry, something went wrong.
Hello! There is currently no way to tell Zod that a string contains binary, so there's nothing I can do. However, I have opened a PR for base64 validation in Zod exactly due to this issue. colinhacks/zod#3047 Closing this as a duplicate of #95
thanks for replying, looking forward...
No branches or pull requests
I have a binary file field
i use z.string() to express
so i get the json is that
but i expect to get with format: binary like this, what can i do for it?
The text was updated successfully, but these errors were encountered: