You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, the request validation does not check if the email is a standard email format. We are using express-json-validator-middleware v3.0.1, but when I add "format": "email" to the email properties in the schema, I see the following error. This appears to be supported in older versions (ex. v2.2.1).
Error: unknown format "email" ignored in schema at path "#/properties/email"
at unknownFormat (/app/node_modules/express-json-validator-middleware/node_modules/ajv/dist/vocabularies/format/format.js:63:23)
at validateFormat (/app/node_modules/express-json-validator-middleware/node_modules/ajv/dist/vocabularies/format/format.js:50:17)
at Object.code (/app/node_modules/express-json-validator-middleware/node_modules/ajv/dist/vocabularies/format/format.js:22:13)
at keywordCode (/app/node_modules/express-json-validator-middleware/node_modules/ajv/dist/compile/validate/index.js:464:13)
at /app/node_modules/express-json-validator-middleware/node_modules/ajv/dist/compile/validate/index.js:222:17
at CodeGen.code (/app/node_modules/express-json-validator-middleware/node_modules/ajv/dist/compile/codegen/index.js:439:13)
at CodeGen.block (/app/node_modules/express-json-validator-middleware/node_modules/ajv/dist/compile/codegen/index.js:568:18)
at iterateKeywords (/app/node_modules/express-json-validator-middleware/node_modules/ajv/dist/compile/validate/index.js:219:9)
at groupKeywords (/app/node_modules/express-json-validator-middleware/node_modules/ajv/dist/compile/validate/index.js:200:13)
at /app/node_modules/express-json-validator-middleware/node_modules/ajv/dist/compile/validate/index.js:192:13
Closing database connection...
The text was updated successfully, but these errors were encountered:
Right now, the request validation does not check if the email is a standard email format. We are using express-json-validator-middleware v3.0.1, but when I add "format": "email" to the email properties in the schema, I see the following error. This appears to be supported in older versions (ex. v2.2.1).
Error: unknown format "email" ignored in schema at path "#/properties/email"
at unknownFormat (/app/node_modules/express-json-validator-middleware/node_modules/ajv/dist/vocabularies/format/format.js:63:23)
at validateFormat (/app/node_modules/express-json-validator-middleware/node_modules/ajv/dist/vocabularies/format/format.js:50:17)
at Object.code (/app/node_modules/express-json-validator-middleware/node_modules/ajv/dist/vocabularies/format/format.js:22:13)
at keywordCode (/app/node_modules/express-json-validator-middleware/node_modules/ajv/dist/compile/validate/index.js:464:13)
at /app/node_modules/express-json-validator-middleware/node_modules/ajv/dist/compile/validate/index.js:222:17
at CodeGen.code (/app/node_modules/express-json-validator-middleware/node_modules/ajv/dist/compile/codegen/index.js:439:13)
at CodeGen.block (/app/node_modules/express-json-validator-middleware/node_modules/ajv/dist/compile/codegen/index.js:568:18)
at iterateKeywords (/app/node_modules/express-json-validator-middleware/node_modules/ajv/dist/compile/validate/index.js:219:9)
at groupKeywords (/app/node_modules/express-json-validator-middleware/node_modules/ajv/dist/compile/validate/index.js:200:13)
at /app/node_modules/express-json-validator-middleware/node_modules/ajv/dist/compile/validate/index.js:192:13
Closing database connection...
The text was updated successfully, but these errors were encountered: