OKHAM.org Documentation EnglishCastellano

OVR · Open Validation Report

An Open Validation Report (OVR) records the findings of one validation run. It identifies the target, the tool and the rulesets used, then gives a summary and the individual findings. A reviewer can follow a finding from its rule identifier to its location in the checked material and inspect the evidence the tool recorded.

Scope and interpretation

The producer records what it examined and what it found. The reader can use the run details to distinguish two checks of the same target or compare findings across revisions. Keeping the checked revision and the applicable ruleset versions with the report makes that comparison reproducible. The checks themselves are described in the linting ruleset.

An empty list of findings means the producer reported none for that run. Establishing that every intended check ran requires evidence of coverage, including skipped checks. A consumer that uses a report to approve work also needs to check that the target and rules match the work under review and that the totals agree with the findings.

Field reference

Read each table within its named object. A required field must be present whenever that object is supplied. Brackets ([]) denote one array entry. Each object in the tables accepts only its listed fields.

Document

Field JSON type Required Meaning and constraints
ovr string Yes OVR version string (SemVer). Use three dot-separated numbers.
run object Yes Identifies the check that produced these findings.
summary object Yes Counts of findings by severity in this report.
issues array of objects Yes Individual findings. An empty list records zero findings.
metadata object No Additional context supplied by the producer.

run

Field JSON type Required Meaning and constraints
runId string Yes Identifier of this run.
timestamp string Yes Date and time recorded by the producer for the run. Format: date-time.
tool string Yes Tool that performed the check.
rulesets array of strings Yes Identifiers of the rulesets used. At least one entry is required.
target string Yes Document, revision or other target that was checked.
baseline string No Comparison point for this run.

summary

Field JSON type Required Meaning and constraints
errors integer Yes Number of findings with severity error. Minimum: 0.
warnings integer Yes Number of findings with severity warn. Minimum: 0.
infos integer Yes Number of findings with severity info. Minimum: 0.

Each count must match the corresponding severity in this report’s issues. A consumer checks the counts separately from JSON Schema validation.

issues[]

Field JSON type Required Meaning and constraints
ruleId string Yes Identifier of the rule that produced the finding.
severity string Yes Classification assigned to the finding. Allowed values are error, warn, info.
message string Yes What the check found.
file string Yes File in which the problem was found.
jsonPointer string Yes JSON Pointer locating the value within the document.
evidence any JSON value Yes Value or record supporting the finding.
column integer No Column in the source line, counting from one. Minimum: 1.
line integer No Line of the source file, counting from one. Minimum: 1.
source string No Origin of the finding, as identified by its producer.
suggestedFix string No Proposed correction.

Contents of a report

An issue may add a line or column (numbered from one), a suggestedFix and a source. A ruleset identifier alone may omit its exact revision. Record the version or hash separately when reproducibility depends on it. The Memory store additionally checks safe relative file paths and rejects different content submitted under an existing run identifier.

Example: interpreting a report with zero findings

The example has an empty list and three zero counts. Its metadata also records tests: 3 and skipped: 1. A reader can see that the report contains no findings and that one test was skipped. The counts measure different things.

In a paged report the summary counts the findings on that page. Memory can record totals in metadata.totalSummary. It can also derive a run identifier from the evaluation inputs and result, and use the target's update time. Consult the producer's timestamp convention before treating such a report as evidence of a fresh run.

Edition 0.2.0 · JSON Schema · Full example

Read the specification on GitHub