agama/rust/agama-lib/share/package.json
Ladislav Slezák 1df60385d5
Fix the JSON schema and validate it in CI (#2635)
## 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)
2025-08-04 12:35:34 +02:00

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"
}
}