wcag_report
WCAG 2.2 content-layer measurement, per success criterion and per locale. Measures the content layer only: text alternatives, accessible names, locale declaration, translation completeness, readability. No conformance level and no conformance score. measures.target_level is a target, never attested. DOM-dependent criteria (contrast, keyboard, focus order) are absent from results[]: they are listed in scope.out_of_scope_sc and are never reported as pass. report_schema: 2. Branch on it: 1 or absent is the pre-refactor format carrying the retired AA conformance score. The two are not comparable and must never be merged. results[], one entry per in-scope criterion: sc, name, principle, level, method, partial, scored, evaluated, total_fail_count, by_locale. - by_locale[locale]: status (pass | fail | not_evaluated), fail_count, sample_items, reason. - method: computed (requirement evaluated) | presence (expected content merely exists). not_evaluated means in scope and measurable, but the project holds no key of the required type (or declares no locale); it stays in the coverage denominator: absent content is not satisfaction. Also returns measures (content_completeness, coverage, evaluated_criteria as raw counters, out_of_scope_count, target_level), screen_reader_text, readability, keys_scanned, source_locale, locales.
Parameters
Section titled “Parameters”| Name | Type | Description | |
|---|---|---|---|
project_uuid | string | optional | Project UUID. Required when multiple projects are configured (SONENTA_PROJECTS); defaults to the single configured project otherwise. |
version_id | string | optional | Optional version UUID; defaults to the production version. |
Example
Section titled “Example”{ "tool": "wcag_report", "arguments": {}}