lint_schema_page
Validates a page's JSON-LD structured data against Google's requirements, reporting missing required and recommended properties per typed entity.
Instructions
Validate a page's JSON-LD against Google's structured-data requirements.
source is a local HTML file or an http(s) URL. Every
application/ld+json block is parsed (@graph included) and each
typed entity is checked against Google's documented required and
recommended properties for Article, Product (with nested Offer /
AggregateRating / Review), Recipe, LocalBusiness, BreadcrumbList, Event,
VideoObject, SoftwareApplication, JobPosting, QAPage, Review and
Organization. FAQPage and HowTo are checked against schema.org since
Google no longer shows those rich results.
Returns per-entity {type, ok, required_missing, recommended_missing, line_estimate, doc}. ok is false when a required property is
missing or the JSON is invalid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||