From 7f8a3228c994bbdbb9ce23955bca7017c0b8cd3d Mon Sep 17 00:00:00 2001 From: fengzero Date: Wed, 27 Oct 2021 02:11:38 +0000 Subject: [PATCH] Add map type in schema --- plugin_param_schema.json | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/plugin_param_schema.json b/plugin_param_schema.json index ede7e66c..e37edd90 100644 --- a/plugin_param_schema.json +++ b/plugin_param_schema.json @@ -90,10 +90,21 @@ }, "connection_mode": { "name": "connection mode", - "description": "false means neuron as the client, true means neuron as the server", - "type": "bool", - "default": false, - "valid": {} + "description": "neuron as the client, or as the server", + "type": "map", + "default": 0, + "valid": { + "map": [ + { + "key": "client", + "value": 0 + }, + { + "key": "server", + "value": 1 + } + ] + } } } } \ No newline at end of file