From 1402a5ddc298a90f2ec00be4ba9da4a958bcdf96 Mon Sep 17 00:00:00 2001 From: ChronosX88 Date: Sun, 15 Dec 2019 18:35:55 +0400 Subject: [PATCH] Update JSON Schemas --- .../json-schema/BaseMessage.schema.json | 17 +++++------------ .../json-schema/ProtocolError.schema.json | 1 - 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/protocol-spec/json-schema/BaseMessage.schema.json b/protocol-spec/json-schema/BaseMessage.schema.json index f30ff3d..30ce414 100644 --- a/protocol-spec/json-schema/BaseMessage.schema.json +++ b/protocol-spec/json-schema/BaseMessage.schema.json @@ -20,8 +20,7 @@ "description": "Message identifier (used to track the request-response chain)", "examples": [ "abcd" - ], - "pattern": "^(.*)$" + ] }, "type": { "$id": "#/properties/type", @@ -32,8 +31,7 @@ "profile:register", "profile:login", "incorrectMessageType:error" - ], - "pattern": "^(.*)$" + ] }, "from": { "$id": "#/properties/from", @@ -45,8 +43,7 @@ "@juliet@396277b7dcd0f1173f2007baa604de7593529cc3fbf335fb7924851cb25c1fdf", "#chpok@b9966d89028b120145dad38961bed0b3b2eac0a2915c0bb1665ffcc1586f6f59", "anonymous" - ], - "pattern": "^(.*)$" + ] }, "to": { "$id": "#/properties/to", @@ -58,17 +55,13 @@ "#white_house_garden@8baef2426dc6a92e16d39d79d90ae6d5a0080aaeccc5f02f1e83a959bc4d0be7", "%phone:1234567890@6dfea40d98f71b3191f94c31af887a00eaeef2fe3501226e3fbb302fc5269eec", "@romeo@cadmium.im" - ], - "pattern": "^(.*)$" + ] }, "payload": { "$id": "#/properties/payload", "type": "object", "title": "payload", - "description": "Message payload (used to store extra information in message, list of permissible fields in the payload depends on \"type\" field)", - "patternProperties": { - "^(.*)$": {} - } + "description": "Message payload (used to store extra information in message, list of permissible fields in the payload depends on \"type\" field)" } } } diff --git a/protocol-spec/json-schema/ProtocolError.schema.json b/protocol-spec/json-schema/ProtocolError.schema.json index b686fe1..f2ac33f 100644 --- a/protocol-spec/json-schema/ProtocolError.schema.json +++ b/protocol-spec/json-schema/ProtocolError.schema.json @@ -32,7 +32,6 @@ "Incorrect type of message (type isn't implemented in the server)", "Rate-limit exceed" ], - "pattern": "^(.*)$" }, "errPayload": { "$id": "#/properties/errPayload",