You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have to check input "websiteURL" param from request body.
import {body} from "express-validator";
export const websiteUrlValidation = body('websiteUrl')
.trim()
.isLength({max: 100}).withMessage('max length is 100')
.isURL({ignore_max_length: true}).withMessage('websiteUrl should be url')
But I can't use the option "ignore_max_length" because I get an error:
error TS2345: Argument of type '{ ignore_max_length: boolean; }' is not assignable to parameter of type 'IsURLOptions'.
Object literal may only specify known properties, and 'ignore_max_length' does not exist in type 'IsURLOptions'.
Also in type 'IsURLOptions' there are missing other properties that could be used in the function isFQDN() inside 'express-validator':
I use 7.0.1 express-validator version.
I have to check input "websiteURL" param from request body.
But I can't use the option "ignore_max_length" because I get an error:
Also in type 'IsURLOptions' there are missing other properties that could be used in the function isFQDN() inside 'express-validator':
The text was updated successfully, but these errors were encountered: