Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Web Installer: add JSON schema to make device addition easier

Summary

Add a JSON schema system to autocomplete devices files in web installer

Description

Currently, when a contributor wants to add a device to the web installer, he has to refer to the doc or to existing files. The aim is to create a system enabling text editors to autocomplete the JSON files.

All contributors who want to add devices to the web installer

Because it's very annoying to have to consult the documentation every time, it saves a lot of time integrating devices, and because autocompletion is cool.

Examples

With this features, all the user has to do is open the JSON in his text editor, which awill automatically retrieve the schema.

Reflection

Peek_11-01-2025_23-59

Auto complete looks like this in vscode, I don't think it's necessary to bother with a plugin as the default interface is already very practical.

Validation

Open a json device file in any code editor that supports JSON schemas. Auto-completion should load automatically.