6
0
Fork 0

schemas/ws/msg.json hinzugefügt

This commit is contained in:
Snoweuph 2025-02-05 01:36:09 +00:00 committed by Euph Forge
parent 658d510576
commit aa7a412f0e
Signed by: Euph Forge
GPG key ID: 85A06461FB6BDBB7

36
schemas/ws/msg.json Normal file
View file

@ -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"
}
]
}