Commit 08028c98 authored by Athanasios's avatar Athanasios
Browse files

Update validationCheckFactory.js

parent 9bbe2d95
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")
];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment