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
ObjectId.isValid
be-pkg-validators/src/rules/objectId.ts
Line 7 in 5d8db1d
static isValid(id: number | string | ObjectId | Buffer | ObjectIdLike): boolean {
https://github.com/mongodb/js-bson/blob/d685aa5a19db2ef67824b99847a380af4fa6bfe0/src/objectid.ts#L301
The current validator does not cover all cases to validate ObjectId. MongoDB provides method to validate ids
ObjectId
The text was updated successfully, but these errors were encountered:
What cases is not covered for hexadecimal? https://github.com/cabinjs/bson-objectid/blob/66f6f803a14b072f6c8d0d5b713cd02154f00ed0/objectid.js#L136
Sorry, something went wrong.
No branches or pull requests
be-pkg-validators/src/rules/objectId.ts
Line 7 in 5d8db1d
https://github.com/mongodb/js-bson/blob/d685aa5a19db2ef67824b99847a380af4fa6bfe0/src/objectid.ts#L301
The current validator does not cover all cases to validate
ObjectId
. MongoDB provides method to validate idsThe text was updated successfully, but these errors were encountered: