Commit Graph
2 Commits
Author SHA1 Message Date
lucas 1ea5786ecd Move ready outside client into player and fix frontend schema validation (#39) 2026-04-13 19:50:42 +02:00
Denis b63f2da22c 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
2026-03-24 20:57:41 +01:00