Backend - Add jsonschema module (#32)
* add jsonschema module * remove unused files * small refactoring * remove hardcoded host and port arguments * remove hardcoded host and server arguments * add direct response flag and to raw methods * fix config lookup * fix is players full method * use config singleton for server host and port arguments * add join message schema * move testclient module * move client tast module * add python typehint module * rename as_dict method to as_raw * delete message_raw file * add client state module * add more type modules * update json schemas * add support for json schema validation * add ready property to client * add client getter and adder methods * add repr dunder method * fix client context not being updated with new client id * add support for toggle ready message * only toggle ready if client is player * add toggle role message * add rejoin message * remove old files * fix import * remove unused import * update unit tests to work with new message classes * make schema dir not user configurable * add config template * rename client id getter method * make client id none-ed
This commit is contained in:
1 parent
4069f3df3b
commit
b63f2da22c
54 files changed
+873
-548
No files matched your search
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"properties": {
|
||||
"messageType": {
|
||||
"const": "join"
|
||||
},
|
||||
"messageContent": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"name"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user