Schema validity
Verification
Reference comparisons
Specifications
On this page
Export
Scope
Specifications for every geom, feature, statistics helper, documentation example, and gallery example, against the Vega-Lite JSON schema.
References
- Reference
- Vega-Lite 6.1.0 JSON schema; opis/json-schema validator
- Versions
- Vega-Lite schema 6.1.0, vega-lite (browser) 6.4.3, vega (browser) 6.4.0, vega-embed (browser) 7.3.0, vl-convert (tested) 1.9.0, opis/json-schema 2.6.0
Data
- schema
- tests/fixtures/vega-lite-v6.1.0.schema.json Source
Method
scripts/evidence-tests.php runs the Pest suite and records each test that validates a specification with opis/json-schema. A case is one test; its count is the number of data sets.
- Check
- Expected values and invariants of the package
- Recorded
- 2026-11-02, PHP 8.5.11, Debian GNU/Linux 13 (trixie) (aarch64), commit b9272c6
Tolerances
exact equality
Applies to: Schema errors
None permitted
x: package value; r: reference value.
Results
18 comparisons in 9 cases: 18 pass, 0 fail, 0 skipped.
By case
| Case | Comparisons | Status |
|---|---|---|
| ChainExamplesTest | 2 | pass |
| ExamplesTest | 1 | pass |
| DashboardTest | 1 | pass |
| FeaturesTest | 3 | pass |
| GeomsTest | 1 | pass |
| ParityTest | 1 | pass |
| RegressionsTest | 4 | pass |
| StatsTest | 3 | pass |
| BinTest | 2 | pass |
Every comparison
| Case | Quantity | Criterion | Values | Status |
|---|---|---|---|---|
| ChainExamplesTest | builds a valid spec for every method-chain documentation example | exact equality | 1 | pass |
| builds the dashboard with method chains | exact equality | 1 | pass | |
| ExamplesTest | builds a valid spec for every gallery example | exact equality | 46 | pass |
| DashboardTest | builds the dashboard charts from phplyr summaries of a phibble table | exact equality | 1 | pass |
| FeaturesTest | compiles each feature to a valid Vega-Lite spec | exact equality | 65 | pass |
| draws seeded jitter in PHP so every render is the same | exact equality | 1 | pass | |
| plots phibble times as seconds on a continuous axis labeled as hms | exact equality | 1 | pass | |
| GeomsTest | compiles each geom to a valid Vega-Lite spec | exact equality | 52 | pass |
| ParityTest | compiles each ggplot2 feature to a valid Vega-Lite spec | exact equality | 40 | pass |
| RegressionsTest | adds tooltips to raw layers with string marks | exact equality | 1 | pass |
| fits PHP-computed smooths per multi-field facet panel | exact equality | 1 | pass | |
| lifts sliders to the top of a composition | exact equality | 1 | pass | |
| bins multi-field facet panels in PHP from columns | exact equality | 1 | pass | |
| StatsTest | builds valid statistics charts | exact equality | 19 | pass |
| draws random slopes in panels from their formula design | exact equality | 1 | pass | |
| notes singular mixed-model fits | exact equality | 1 | pass | |
| BinTest | bins in PHP above the server threshold and embeds only the bins | exact equality | 1 | pass |
| draws hexagons sized to tile the panel | exact equality | 1 | pass |
Limitations
Known differences
- Browsers load vega-lite 6.4.3; specifications are validated against the 6.1.0 schema, the version vl-convert 1.9.0 renders with. No check validates against a 6.4 schema.
Reproduction
From the repository root
composer install
php scripts/evidence-tests.php
- Raw record
- site/verifications/vega-lite-schema.json
- Full results
- scripts/evidence-tests.php