.lagune/configs.json records the categories a project uses, indexes its own specializations, and sets what the checkers leave out. Its JSON Schema lets your editor autocomplete each field and flag a typo or an unknown category as you edit the file.
The current schema
Whenever Lagune writes the file and finds no $schema in it, it points the file at the current schema:
{
"$schema": "https://lagune.ai/schemas/configs.json",
"categories": ["owasp", "javascript"]
}
This address always follows the current Lagune. A file written before Lagune 0.16.0 gets it on its next change, and every phase points it out until then.
Pin a version
Every Lagune release from 0.16.0 onward carries the schema as it was in that version, published on npm and served by jsDelivr. To pin one, put the version after lagune@ in the $schema address:
{
"$schema": "https://cdn.jsdelivr.net/npm/lagune@0.16.0/schemas/configs.json"
}
The version accepts any semver range:
| Version | Schema |
|---|---|
0.16.0 | The one from 0.16.0 |
0.16.x or 0.16 | The one from the latest 0.16 release |
0.x or 0 | The one from the latest 0.x release |
latest | The one from the latest release |
Frequently Asked Questions
No. The schema only helps your editor, and Lagune reads the file the same way with or without $schema.
No. Lagune writes $schema only when the file has none, and keeps any address you set.
When the project runs a specific Lagune version, so your editor validates the file against what that version accepts.
