Skip to content
New issue

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

inconsistent JSDoc data for validateDescription #1257

Open
ElectricNroff opened this issue Jul 16, 2024 · 0 comments
Open

inconsistent JSDoc data for validateDescription #1257

ElectricNroff opened this issue Jul 16, 2024 · 0 comments

Comments

@ElectricNroff
Copy link
Contributor

* @param {String} descIndex
* @returns true
* @throws Error
*/
function validateDescription (descIndex) {
// For each index, check if it exists, then apply custom validator
return body(descIndex).optional({ nullable: true }).isArray().custom((descriptions, { req, path }) => {

this seems to be intended to be called with an array of strings and thus {String} could be replaced by {String[]}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs Triage
Development

No branches or pull requests

1 participant