From 51e674709fc7112e9c2f1e68b50cbd541143941b Mon Sep 17 00:00:00 2001 From: Pedro Sanders Date: Sat, 23 Dec 2023 21:34:46 -0500 Subject: [PATCH] fix: correct json-schema configuration for array types --- mods/dispatcher/src/config/schema.ts | 26 +++++++++++++------------- mods/edgeport/src/config/schema.ts | 26 +++++++++++++------------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/mods/dispatcher/src/config/schema.ts b/mods/dispatcher/src/config/schema.ts index b3b2f0f33..b776a8041 100644 --- a/mods/dispatcher/src/config/schema.ts +++ b/mods/dispatcher/src/config/schema.ts @@ -46,20 +46,20 @@ export const schema = { description: "Middleware Processors", type: "array", items: { - type: "object" - }, - properties: { - ref: { - type: "string" - }, - addr: { - type: "string" + type: "object", + properties: { + ref: { + type: "string" + }, + addr: { + type: "string" + }, + postProcessor: { + type: "boolean" + } }, - postProcessor: { - type: "boolean" - } - }, - required: ["ref", "addr"] + required: ["ref", "addr"] + } }, processors: { description: "Message Processors", diff --git a/mods/edgeport/src/config/schema.ts b/mods/edgeport/src/config/schema.ts index cfb27a411..85da8eb72 100644 --- a/mods/edgeport/src/config/schema.ts +++ b/mods/edgeport/src/config/schema.ts @@ -85,20 +85,20 @@ export const schema = { description: "Acceptable Transport Protocols", type: "array", items: { - type: "object" - }, - properties: { - protocol: { - type: "string" - }, - bindAddr: { - type: "string" + type: "object", + properties: { + protocol: { + type: "string" + }, + bindAddr: { + type: "string" + }, + port: { + type: "integer" + } }, - port: { - type: "integer" - } - }, - required: ["port", "protocol"] + required: ["port", "protocol"] + } }, processor: { description: "Adjacent service for message routing",