Skip to content

Commit

Permalink
fix: change validation message
Browse files Browse the repository at this point in the history
  • Loading branch information
danez committed Mar 20, 2023
1 parent be10344 commit 45804ab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions node/validation/manifest/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ const routesSchema = {
pattern: {
type: 'string',
format: 'regexPattern',
errorMessage:
'pattern needs to be a regex that starts with ^ followed by / and ends with $ without any additional slashes before and afterwards',
errorMessage: 'pattern must be a regex that starts with ^/ and ends with $ for example ^/blog/[d]{4}$',
},
generator: { type: 'string' },
},
Expand All @@ -35,7 +34,7 @@ const functionConfigSchema = {
type: 'string',
format: 'regexPattern',
errorMessage:
'excluded_patterns needs to be an array of regex that starts with ^ followed by / and ends with $ without any additional slashes before and afterwards',
'excluded_patterns must be an array of regex that starts with ^/ and ends with $ for example ^/blog/[d]{4}$',
},
},
on_error: { type: 'string' },
Expand Down

0 comments on commit 45804ab

Please sign in to comment.