diff --git a/src/types/config.schema.json b/src/types/config.schema.json index 166eb57..0fa1078 100644 --- a/src/types/config.schema.json +++ b/src/types/config.schema.json @@ -1,79 +1,78 @@ { - "$schema": "http://json-schema.org/draft-07/schema#", - "type": "object", - "properties": { - "networks": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "rpc": { - "type": "string", - "format": "uri" - }, - "deploymentBlock": { - "type": "integer" - }, - "watchdogTimeout": { - "type": "integer" - }, - "orderBookApi": { - "type": "string", - "format": "uri" - }, - "pageSize": { - "type": "integer" - }, - "filterPolicy": { - "type": "object", - "properties": { - "defaultAction": { - "$ref": "#/$defs/filterAction" - }, - "owners": { - "type": "object", - "additionalProperties": { - "$ref": "#/$defs/filterAction" - } - }, - "handlers": { - "type": "object", - "additionalProperties": { - "$ref": "#/$defs/filterAction" - } - } - }, - "required": [ - "defaultAction" - ], - "additionalProperties": false - } - }, - "required": [ - "name", - "rpc", - "deploymentBlock", - "filterPolicy" - ], - "additionalProperties": false - } - } - }, - "required": [ - "networks" - ], - "additionalProperties": false, - "$defs": { - "filterAction": { + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "properties": { + "networks": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "rpc": { + "type": "string", + "format": "uri" + }, + "deploymentBlock": { + "type": "integer" + }, + "watchdogTimeout": { + "type": "integer" + }, + "orderBookApi": { "type": "string", - "enum": [ - "ACCEPT", - "DROP", - "SKIP" - ] - } + "format": "uri" + }, + "pageSize": { + "type": "integer" + }, + "filterPolicy": { + "type": "object", + "properties": { + "defaultAction": { + "$ref": "#/$defs/filterAction" + }, + "conditionalOrderIds": { + "type": "object", + "additionalProperties": { + "$ref": "#/$defs/filterAction" + } + }, + "transactions": { + "type": "object", + "additionalProperties": { + "$ref": "#/$defs/filterAction" + } + }, + "owners": { + "type": "object", + "additionalProperties": { + "$ref": "#/$defs/filterAction" + } + }, + "handlers": { + "type": "object", + "additionalProperties": { + "$ref": "#/$defs/filterAction" + } + } + }, + "required": ["defaultAction"], + "additionalProperties": false + } + }, + "required": ["name", "rpc", "deploymentBlock", "filterPolicy"], + "additionalProperties": false + } + } + }, + "required": ["networks"], + "additionalProperties": false, + "$defs": { + "filterAction": { + "type": "string", + "enum": ["ACCEPT", "DROP", "SKIP"] } + } }