ci(core): Upgrade express-openapi-validator (no-changelog) (#9022)
This commit is contained in:
committed by
GitHub
parent
76b73a27a0
commit
a45fd0dbf4
@@ -124,7 +124,7 @@
|
||||
"express": "4.18.3",
|
||||
"express-async-errors": "3.1.1",
|
||||
"express-handlebars": "7.1.2",
|
||||
"express-openapi-validator": "4.13.8",
|
||||
"express-openapi-validator": "5.1.6",
|
||||
"express-prom-bundle": "6.6.0",
|
||||
"express-rate-limit": "7.2.0",
|
||||
"fast-glob": "3.2.12",
|
||||
|
||||
@@ -65,20 +65,17 @@ async function createApiRouter(
|
||||
operationHandlers: handlersDirectory,
|
||||
validateRequests: true,
|
||||
validateApiSpec: true,
|
||||
formats: [
|
||||
{
|
||||
name: 'email',
|
||||
formats: {
|
||||
email: {
|
||||
type: 'string',
|
||||
validate: (email: string) => validator.isEmail(email),
|
||||
},
|
||||
{
|
||||
name: 'identifier',
|
||||
identifier: {
|
||||
type: 'string',
|
||||
validate: (identifier: string) =>
|
||||
validator.isUUID(identifier) || validator.isEmail(identifier),
|
||||
},
|
||||
{
|
||||
name: 'jsonString',
|
||||
jsonString: {
|
||||
validate: (data: string) => {
|
||||
try {
|
||||
JSON.parse(data);
|
||||
@@ -88,7 +85,7 @@ async function createApiRouter(
|
||||
}
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
validateSecurity: {
|
||||
handlers: {
|
||||
ApiKeyAuth: async (
|
||||
|
||||
@@ -35,7 +35,6 @@ properties:
|
||||
$ref: './workflowSettings.yml'
|
||||
staticData:
|
||||
example: { lastId: 1 }
|
||||
nullable: true
|
||||
anyOf:
|
||||
- type: string
|
||||
format: 'jsonString'
|
||||
|
||||
Reference in New Issue
Block a user