From 740bef2de988507ef18dcf5443cb8290800bbe32 Mon Sep 17 00:00:00 2001 From: nobody Date: Mon, 6 May 2024 08:08:28 +0000 Subject: [PATCH] JSON Schema Update --- config/v3/mt5_login_list/receive.json | 93 ++++++++++++++++++++------- 1 file changed, 71 insertions(+), 22 deletions(-) diff --git a/config/v3/mt5_login_list/receive.json b/config/v3/mt5_login_list/receive.json index 6adc57a12..bf2547111 100644 --- a/config/v3/mt5_login_list/receive.json +++ b/config/v3/mt5_login_list/receive.json @@ -205,28 +205,77 @@ }, "rights": { "description": "Rights assigned to the MT5 account.", - "type": "array", - "items": { - "type": "string", - "enum": [ - "api", - "api_deprecated", - "confirmed", - "enabled", - "exclude_reports", - "expert", - "investor", - "otp_enabled", - "password", - "push", - "readonly", - "reports", - "reset_pass", - "sponsored", - "technical", - "trade_disabled", - "trailing" - ] + "type": "object", + "additionalProperties": false, + "properties": { + "api": { + "description": "User is allowed to connect via MT5 Web API", + "type": "boolean" + }, + "api_deprecated": { + "description": "This flag is obsolete and not used", + "type": "boolean" + }, + "confirmed": { + "description": "User's certificate is confirmed", + "type": "boolean" + }, + "enabled": { + "description": "The User is allowed to connect", + "type": "boolean" + }, + "exclude_reports": { + "description": "User is not allowed to view reports", + "type": "boolean" + }, + "expert": { + "description": "User is allowed to use Expert Advisors", + "type": "boolean" + }, + "investor": { + "description": "For internal mt5 usage", + "type": "boolean" + }, + "otp_enabled": { + "description": "User is allowed to use OTP", + "type": "boolean" + }, + "password_change": { + "description": "User is allowed to change password", + "type": "boolean" + }, + "push": { + "description": "User has enabled push notifications", + "type": "boolean" + }, + "readonly": { + "description": "Value for internal mt5 usage", + "type": "boolean" + }, + "reports": { + "description": "User is allowed to receive daily reports", + "type": "boolean" + }, + "reset_pass": { + "description": "User must change password during next connection", + "type": "boolean" + }, + "sponsored": { + "description": "VPS is enabled for user", + "type": "boolean" + }, + "technical": { + "description": "User can view technical accounts in manager/admin terminal", + "type": "boolean" + }, + "trade_disabled": { + "description": "Trading is disabled for user", + "type": "boolean" + }, + "trailing": { + "description": "User is allowed to use trailing stops", + "type": "boolean" + } } }, "server": {