Skip to content

Commit

Permalink
fix: correct json-schema configuration for array types
Browse files Browse the repository at this point in the history
  • Loading branch information
psanders committed Dec 24, 2023
1 parent eed5fb9 commit 51e6747
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
26 changes: 13 additions & 13 deletions mods/dispatcher/src/config/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
26 changes: 13 additions & 13 deletions mods/edgeport/src/config/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 51e6747

Please sign in to comment.