diff --git a/schemas/ws/client/chat.json b/schemas/ws/client/chat.json new file mode 100644 index 0000000..28ab87a --- /dev/null +++ b/schemas/ws/client/chat.json @@ -0,0 +1,26 @@ +{ + "$schema": "https://json-schema.org/draft/2019-09/schema", + "$id": "http://example.com/example.json", + "type": "object", + "default": {}, + "title": "Root Schema", + "required": ["msg"], + "properties": { + "msg": { + "type": "string", + "default": "", + "title": "The message sent", + "examples": ["Hello World!", "GG"], + "maxLength": 256, + "minLength": 1 + } + }, + "examples": [ + { + "msg": "Hello World!" + }, + { + "msg": "GG" + } + ] +} \ No newline at end of file