## Problem - The JSON schema definition contains several issues, some JSON validators might refuse to use it. ## Solution - Fix the problems reported by the [Ajv](https://ajv.js.org/) JSON schema validator - Added a CI job for validating the schema definition automatically ## Testing - Added a new CI test - [Example CI run](https://github.com/agama-project/agama/actions/runs/16715340116/job/47307606303#step:5:9)
8 lines
293 B
JSON
8 lines
293 B
JSON
{
|
|
"scripts": {
|
|
"validate": "ajv compile --spec=draft2019 --verbose --all-errors -r storage.schema.json -r iscsi.schema.json -s profile.schema.json && ajv compile --spec=draft2019 --verbose --all-errors -s storage.model.schema.json"
|
|
},
|
|
"dependencies": {
|
|
"ajv-cli": "^5.0.0"
|
|
}
|
|
}
|