json
JSON, YAML, and TOML files with a known JSON Schema: each file matches its schema.
Selected when
Section titled “Selected when”Always.
Checks
Section titled “Checks”Validates SchemaStore files that other checks do not own, such as Compose, Dependabot, and Renovate files.
Runs at the push stage, and needs network access.
A key the schema rejects never takes effect, and nobody notices until the expected behavior fails to appear.
What to do
Section titled “What to do”Fix the key v8r names, or map the file to its schema under json.schemas.
Example
Section titled “Example”A JSON file with a string where its schema requires a boolean reports a mismatch. Replace the string with true or false.
Turn it off
Section titled “Turn it off”gspot ignore json/v8r --paths "<path>" --reason "<why>"Settings
Section titled “Settings”| Setting | What it sets |
|---|---|
json.schemas |
File patterns mapped to schema URLs, for files that the SchemaStore catalog does not know. |
Tools and versions
Section titled “Tools and versions”| Tool | Version |
|---|---|
| v8r | 6.1.0 |
| ajv | 8.20.0 |
Files gspot writes
Section titled “Files gspot writes”.gspot/configurations/json/v8r.yml