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