From 072a53f6d8f5e8fe642284c13af93177def6abbe Mon Sep 17 00:00:00 2001 From: slava hatnuke Date: Fri, 17 Nov 2017 01:27:27 -0800 Subject: [PATCH] fix: routes.json validation for project cards and columns --- lib/routes.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/routes.json b/lib/routes.json index cbabb66e..dd5f4fff 100644 --- a/lib/routes.json +++ b/lib/routes.json @@ -3292,9 +3292,9 @@ "position": { "type": "String", "required": true, - "validation": "^(top|bottom|after:\\d)$", + "validation": "^(top|bottom|after:\\d+)$", "invalidmsg": "", - "description": "Can be one of top, bottom, or after:, where is the id value of a column in the same project." + "description": "Can be one of top, bottom, or after:, where is the id value of a card in the same project." }, "column_id": { "type": "String", @@ -3356,7 +3356,7 @@ "position": { "type": "String", "required": true, - "validation": "^(first|last|after:\\d)$", + "validation": "^(first|last|after:\\d+)$", "invalidmsg": "", "description": "Can be one of first, last, or after:, where is the id value of a column in the same project." }