Skip to content

Report reference

Read the JSON table check report

Reconstruct the counts for a window display matrix, then compare them with the saved report. The example shows what a reader can learn without seeing any field names or cell values.

Identify the input representation

The report's format is yagiro-json-table-check-v1. The schema field is records for an array of named row objects and matrix for a table with separate heading and row arrays. These two fields identify the report version and the kind of input it describes.

In window-matrix.json, columns lists three headings and rows contains three arrays. Accordingly, window-report.example.json gives columns and rows as 3. For an empty array of row objects, both counts are zero. A matrix with headings and no rows retains its column count.

Count headings and widths

blankHeadings counts empty and whitespace-only heading names. duplicateHeadings counts each occurrence of an exactly repeated name after its first occurrence. Here an empty middle heading contributes one blank and the second slot contributes one repeat.

The row widths are 3, 1 and 4. shortestRowWidth is 1, longestRowWidth is 4 and nonmatchingWidthRows is 2. If there are no data rows, both width extrema are null and the count of mismatched rows is zero.

Count cells that actually exist

emptyCells counts stored, zero-length strings. In the window matrix the first row has one and the last row has another. The two spaces in row 3 and the missing positions in row 2 add nothing to the count.

objectCompatible is false when a matrix has a blank heading, an exact repeat or a row of a different width. A header-only matrix with distinct, nonblank headings can return true. With zero rows, a separate row-object array has no place to carry those headings.

Verify a saved report

Use table-check-report.schema.json to check the version marker, required fields, types and bounds. Then compare the numbers with the source matrix. A structurally valid report can still give the wrong number for a particular file.

The report contains aggregate counts, widths and a compatibility flag. To find a specific row or to establish what a missing window entry means, retain a reference to the original excerpt and consult its source.

Schema and examples

The diagnostic JSON records the format, counts and compatibility observations. It does not contain column names or cell values, and it does not establish business correctness.

Reference sources

Continue with a check