From aa7a412f0eeff2016744750aa97dc1ac6e3f07b8 Mon Sep 17 00:00:00 2001 From: snoweuph Date: Wed, 5 Feb 2025 01:36:09 +0000 Subject: [PATCH] =?UTF-8?q?schemas/ws/msg.json=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- schemas/ws/msg.json | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 schemas/ws/msg.json diff --git a/schemas/ws/msg.json b/schemas/ws/msg.json new file mode 100644 index 0000000..8b9485a --- /dev/null +++ b/schemas/ws/msg.json @@ -0,0 +1,36 @@ +{ + "$schema": "https://json-schema.org/draft/2019-09/schema", + "$id": "http://example.com/example.json", + "type": "object", + "default": {}, + "title": "Root Schema", + "required": ["authorId", "msg"], + "properties": { + "authorId": { + "type": "integer", + "default": 0, + "title": "The Steam 64bit user ID", + "examples": [18446744073709551615, 0], + "maximum": 18446744073709551615, + "minimum": 0 + }, + "msg": { + "type": "string", + "default": "", + "title": "The message sent", + "examples": ["Hello World!", "GG"], + "maxLength": 256, + "minLength": 1 + } + }, + "examples": [ + { + "authorId": 18446744073709551615, + "msg": "Hello World!" + }, + { + "authorId": 0, + "msg": "GG" + } + ] +} \ No newline at end of file