You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
schema/json-ld-valid: accesses parsed.schemas.valid instead of parsed.schema.valid (always fails) #3
The schema/json-ld-valid rule always reports a failure because it accesses parsed.schemas.valid but the valid field only exists on parsed.schema (singular, not plural).
Since parsed.schemas.valid is undefined, the check !undefined evaluates to true, triggering a false failure on every page.
The rule should access parsed.schema.valid (singular) to correctly check JSON-LD validity.
Actual Behavior
Rule always returns failure because it reads from the wrong field name.
Database Evidence
Querying the project database confirms:
parsed.schema has valid: true and errors: []
parsed.schemas has no valid field
SELECT json_extract(parsed_data, '$.schema.valid') as schema_valid,
json_extract(parsed_data, '$.schemas.valid') as schemas_valid
FROM pages WHERE url LIKE'%example%';
-- Returns: schema_valid=1, schemas_valid=NULL
The schema handling was rewritten with a SchemaCollection class that has proper typed accessors including a valid getter. The rule now correctly accesses schemas.valid where schemas is a class instance with the getter, not a plain object.
Activity
nc9 commentedon Feb 2, 2026
fix inbound for this! thanks for reporting it
Fede654 commentedon Feb 2, 2026
Glad to help!
nc9 commentedon Feb 2, 2026
Fixed in v0.0.26 via commit 308c7c9.
The schema handling was rewritten with a
SchemaCollectionclass that has proper typed accessors including avalidgetter. The rule now correctly accessesschemas.validwhereschemasis a class instance with the getter, not a plain object.nc9 commentedon Feb 2, 2026
https://squirrelscan.com/releases/0.0.27