MegaAntiCheat / client-backend

GNU General Public License v3.0
118 stars 25 forks source link

Add schema and meta fields to playerlist json file for version and identity control #119

Open lili7h opened 7 months ago

lili7h commented 7 months ago

As title,

The easiest way to verify if a json file is of the expected format and valid is to specific a json schema, which you can do in the json file using the $schema key, and providing a URL to the jsonschema file as the value.

This can then be used to verify that the json file is in fact in the expected format, and also as a versioning system.

lili7h commented 7 months ago

cant remember if ive already made a ticket like this lol

lzardy commented 7 months ago

You can also use the Rust lib schemars which is compatible with Serde for serialize/deserialize.