Config file location
Schema Validator reads:
plugins/Schema-Validator/config.yml
Current keys and behavior
| Key | Type | Bundled value | Runtime effect |
|---|---|---|---|
schema-directory |
string | schemas |
Folder scanned by startup autoload |
auto-load |
boolean | true |
Loads .json, .yml, .yaml schemas on enable |
cache-enabled |
boolean | true |
Enables cache expiration in SchemaRegistry#getSchema |
validation-on-load |
boolean | false |
Runs schema self-check pass after autoload |
strict-mode |
boolean | false |
Turns unsupported keyword warnings into load exceptions |
[!NOTE] The
strict-modesetting controls how the schema loader handles unsupported keywords:
false(default): Logs a warning and continues loading the schematrue: Throws an exception and aborts schema loading (fail-fast behavior)
[!NOTE]
PluginConfiguses fallback defaults if a key is missing. Forvalidation-on-load, bundled file isfalse, but code fallback istrueif the key is removed.
Safe tuning strategy
1. Start with low-risk defaults
schema-directory: "schemas"
auto-load: true
cache-enabled: true
validation-on-load: false
strict-mode: false
2. Enable strict-mode in controlled environments first
Use strict-mode: true in CI/staging to catch unsupported keywords before production deploy.
3. Enable validation-on-load only after schema set stabilizes
validation-on-load validates each loaded schema using generated minimal test data. This can increase startup time and may flag complex schemas early.
4. Restart or reload and verify
After config changes:
- restart server or run
/sv reload --all - confirm config summary in logs
- confirm schema load count
- run one known validation command
Operational checklists
Production baseline
auto-load: truecache-enabled: truestrict-mode: true(recommended once schema set is stable)validation-on-load: false(unless startup checks are required)
Debug session baseline
strict-mode: falsevalidation-on-load: true
Continue
- Review administrative usage in Commands
- Compare keyword support details in Schema keywords
- Review runtime order in Validation behavior