Skip to content

Commit

Permalink
docs: fix up checkSchema syntax
Browse files Browse the repository at this point in the history
Fixes #1105
  • Loading branch information
gustavohenke committed Sep 25, 2022
1 parent 0b258a5 commit 6715a6a
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/feature-schema-validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ app.put(
},
rtrim: {
// Options as an array
options: [[' ', '-']],
options: [' -'],
},
},
// Support bail functionality in schemas
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ app.put('/user/:id/password', checkSchema({
},
rtrim: {
// Options as an array
options: [[" ", "-"]],
options: [' -'],
},
},
// Wildcards/dots for nested fields work as well
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ app.put('/user/:id/password', checkSchema({
},
rtrim: {
// Options as an array
options: [[" ", "-"]],
options: [' -'],
},
},
// Wildcards/dots for nested fields work as well
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ app.put(
},
rtrim: {
// Options as an array
options: [[' ', '-']],
options: [' -'],
},
},
// Support bail functionality in schemas
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ app.put(
},
rtrim: {
// Options as an array
options: [[' ', '-']],
options: [' -'],
},
},
// Support bail functionality in schemas
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ app.put('/user/:id/password', checkSchema({
},
rtrim: {
// Options as an array
options: [[" ", "-"]],
options: [' -'],
},
},
// Wildcards/dots for nested fields work as well
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ app.put(
},
rtrim: {
// Options as an array
options: [[' ', '-']],
options: [' -'],
},
},
// Support bail functionality in schemas
Expand Down

0 comments on commit 6715a6a

Please sign in to comment.