]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/middlewares/validators/activitypub/signature.ts
improve api param message for dates
[github/Chocobozzz/PeerTube.git] / server / middlewares / validators / activitypub / signature.ts
index 7c4e4946329d12e330bd070693bac2f4862e6e66..7896a612806aed568c3e3b05900679388f1a7f5a 100644 (file)
@@ -14,7 +14,7 @@ const signatureValidator = [
     .custom(isSignatureTypeValid).withMessage('Should have a valid signature type'),
   body('signature.created')
     .optional()
-    .custom(isDateValid).withMessage('Should have a valid signature created date'),
+    .custom(isDateValid).withMessage('Should have a signature created date that conforms to ISO 8601'),
   body('signature.creator')
     .optional()
     .custom(isSignatureCreatorValid).withMessage('Should have a valid signature creator'),