Skip to content

JSON schemas

Report

The JSON report, which --given-json writes, follows a published JSON Schema. Every report names it under a top-level $schema key, so an editor can validate and complete the file. metadata.kind is report, where a delta's is delta. metadata.schema_version holds the report's version. pytest-given reads only reports of its own version. pytest-given report, citations, coverage and delta refuse any other with one line saying to regenerate it.

Delta

The delta JSON, which pytest-given delta writes, follows a published JSON Schema and names it under a top-level $schema key. metadata.schema_version holds the delta's version. pytest-given delta re-renders only a delta of its own version. It refuses another with one line saying to build it again from its two reports.