google / schemarama

Schemarama is a project exploring standards-based validation for structured data, especially Schema.org.
Apache License 2.0
124 stars 22 forks source link

`failures` array should list identifier of node that violates the shape #48

Open RinkeHoekstra opened 1 year ago

RinkeHoekstra commented 1 year ago

The failures array in the report currently does not list the identifier of the node that violates the shape, e.g.:

        {
            "property": "https://example.com/ssn",
            "message": "More than 1 values",
            "shape": "https://example.com/PersonShape",
            "severity": "error"
        },

This makes the report hard to use: which resource in my data is the culprit?

Is there an easy way to have the identifier of the incorrect node be part of the report?