Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lili7h opened this issue Feb 16, 2024 · 2 comments

Comments

@lili7h
Copy link
Contributor

lili7h commented Feb 16, 2024

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
Copy link
Contributor Author

lili7h commented Feb 16, 2024

cant remember if ive already made a ticket like this lol

@lzardy
Copy link

lzardy commented Feb 16, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants