ci(core): Upgrade express-openapi-validator (no-changelog) (#9022)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-04-03 16:57:33 +02:00
committed by GitHub
parent 76b73a27a0
commit a45fd0dbf4
4 changed files with 43 additions and 33 deletions

View File

@@ -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 (

View File

@@ -35,7 +35,6 @@ properties:
$ref: './workflowSettings.yml'
staticData:
example: { lastId: 1 }
nullable: true
anyOf:
- type: string
format: 'jsonString'