Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
OGC
node-3DPS
Commits
08028c98
Commit
08028c98
authored
Jul 25, 2021
by
Athanasios
Browse files
Update validationCheckFactory.js
parent
9bbe2d95
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/validationCheckFactory.js
View file @
08028c98
const
{
check
,
query
}
=
require
(
"
express-validator
"
);
const
{
query
}
=
require
(
"
express-validator
"
);
const
{
toLower
,
toUpper
,
boundingboxIsValid
}
=
require
(
"
../src/customSanitizers
"
);
const
assets
=
require
(
"
../src/assets
"
);
const
commonChecks
=
()
=>
{
return
[
check
(
"
service
"
)
query
(
"
service
"
)
.
exists
().
withMessage
(
"
MissingParameterValue
"
)
.
customSanitizer
(
toLower
)
.
equals
(
"
3dps
"
).
withMessage
(
"
InvalidParameterValue
"
),
check
(
"
acceptversions
"
)
query
(
"
acceptversions
"
)
.
exists
().
withMessage
(
"
MissingParameterValue
"
)
.
equals
(
"
1.0
"
).
withMessage
(
"
InvalidParameterValue
"
)
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment