Closed AWegnerGitHub closed 7 years ago
The current ones basically are sample versions. I'll just rename them (and add some comments).
Tried to find a JSON module that supported comments, but it doesn't seem to work on Python 3...
Oh, cool. I'll look into it later.
JSON doesn't have comments...
Not standard JSON obviously. But variants do (+ this new JSON 5 thing apparently)
If we are going to use "JSON with comments", it's not JSON anymore, so we require all implementations that have the potential to read these "json" files to support the custom standard. This is bad for future maintainability of the code
TOML is "json with comments". It's a superset of json which supports list-style data and comments.
Both
config.json
androoms.json
need to be pulled out of the repository and replaced with*.sample.json
versions (likesecrets.json
).Doing this allows individual instances to update configuration and room settings without worrying about those settings being clobbered when they update from the repository.
With this change,
config.json
androoms.json
will need to be ignored.