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 this mongoose schema:
name: { type: String, maxlength: [256, 'Why name is too long?'] // Mongoose validator: https://mongoosejs.com/docs/validation.html#built-in-validators },
Calling jsonSchema() give me the output with maxLength is an array.
jsonSchema()
maxLength
Expected result:
maxLength: 256
The text was updated successfully, but these errors were encountered:
@conmanet thanks for reporting the bug. Will fix it soon. ETA (approximately): June 8, 2020
Sorry, something went wrong.
Fixed in v1.4.4
Commit: 9e30750
DScheglov
No branches or pull requests
I have this mongoose schema:
Calling
jsonSchema()
give me the output withmaxLength
is an array.Expected result:
The text was updated successfully, but these errors were encountered: