We use cookies to keep this site working and, with your permission, to remember your preferences, understand site traffic and support advertising. You can change your choice at any time. Cookie Policy

SEO Tool Orbit
Technical SEO

How to Validate Structured Data and Fix Schema Errors

Schema errors fall into a few kinds: broken JSON, wrong vocabulary, missing properties and markup that doesn't match the page. Here's how to find and fix each.

By SEO Tool Orbit5 min read

Illustration of a code panel with one line flagged in red beside a validation checklist with a warning
Find the broken line, then check eligibility. · Original illustration by SEO Tool Orbit

Structured data fails quietly. A missing comma breaks a whole block without any visible sign on the page; a missing property makes a page ineligible for a feature without any error message to visitors. The only way to know is to validate — before publishing, and again after every template change.

In short: separate the two questions. First, is the markup valid — parseable JSON, real Schema.org types and properties? Then, is it eligible — does it include what a specific search feature requires, and does it match the visible page? Fix syntax errors first, then missing required properties, then duplicates and mismatches. Re-test after publishing and after any template or plugin update.

Syntax errors versus eligibility issues

Kind of problemExampleEffectFound by
Syntax errorTrailing comma, unescaped quoteThe whole block is ignoredAny parser or validator
Vocabulary error"@type": "Aritcle", invented propertyThe type or property is ignoredSchema Markup Validator
Missing required propertyA Product rich result without a price or reviewNot eligible for that featureRich Results Test
Missing recommended propertyAn Article without an imageEligible, but less completeRich Results Test (as a warning)
Content mismatchMarkup says 4.8 stars; the page shows no reviewsMay be ignored or treated as spamA person comparing markup and page

The Schema Markup Validator (validator.schema.org) checks markup against the Schema.org vocabulary. Google's Rich Results Test checks whether markup qualifies for Google's features — our own Rich Results Test checks eligibility too. You need both kinds of check.

Schema.org itself has almost no required properties; requirements come from each search feature's documentation. Google, for example, lists required and recommended properties per rich result type. Treat "required" as "needed for this feature" and "recommended" as "fill in if the page genuinely has it". Never invent a value to satisfy a validator — an empty, honest property is better than a false one.

JSON-LD parsing problems

Most broken JSON-LD comes from a handful of mistakes:

{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "Fixing schema errors",
  "author": { "@type": "Person", "name": "Jane Doe" },   <-- trailing comma before the closing brace
}
  • Trailing commas after the last property.
  • Curly "smart" quotes pasted from a word processor instead of straight quotes.
  • Unescaped double quotes inside text values.
  • Template variables that output nothing, leaving "name": ,.
  • HTML inside values, or the script tag closed early by a value containing </script>.

Generating JSON-LD with a proper serializer, rather than gluing strings together, avoids nearly all of these.

Duplicate schema blocks

Duplicates usually come from layers that each add markup: the theme outputs an Organization, an SEO plugin outputs another, and someone pastes a third into the page. Search engines may pick one, merge them or ignore them. Decide which layer owns each entity, remove the rest, and connect related entities with @id rather than repeating them. Our structured data formats guide shows how @id works.

Missing properties

  • Image on articles and products — check it's an absolute URL to a crawlable image.
  • Dates — datePublished and dateModified in ISO 8601 format.
  • Author — a Person or Organization with a name, not a bare string where an object is expected.
  • Offers on products — price, currency and availability, matching the page.

Schema and visible page content

This is the rule that matters most: structured data must describe what visitors can see. Ratings, prices, FAQs and reviews in markup must appear on the page. Mismatches can make a page ineligible for rich results and, if they look deliberate, can lead to a manual action. When the page changes — a price, a new author — the markup must change with it, which is the strongest argument for generating it from the same data. The schema markup guide covers this principle in more depth.

Reading validator output

  • Find the item. Validators group results by detected item, such as "Product" or "BreadcrumbList". A missing item usually means a syntax error stopped parsing.
  • Errors first. Errors make an item invalid or ineligible; warnings point to missing optional details.
  • Note the path. Messages name the property path, such as offers.price, which tells you exactly where to look.
  • Test the live URL, not only a code snippet. The server's real output is what matters.

A worked example

Suppose a product page's markup reports one error and two warnings. The error is a missing offers, because the template only outputs offers for items in stock. The warnings are a missing aggregateRating and a missing brand. The fix is to output offers for every product, with availability set to OutOfStock where appropriate, and to add brand, since the page shows it. The rating warning stays: the page has no reviews, and inventing a rating to silence a warning would be misleading.

A validation workflow

  1. Generate or edit the markup — the AI Schema Generator creates JSON-LD from a page, content or form, then validates, scores and explains it.
  2. Validate syntax and vocabulary before publishing.
  3. Test eligibility for the features you're targeting.
  4. Compare with the page by eye: every marked-up fact should be visible.
  5. Publish, then re-test the live URL — what the server returns can differ from your draft.
  6. Monitor Search Console's enhancement reports for new errors.

Regression testing after publishing

Structured data breaks most often when something else changes: a theme update, a new plugin, a template refactor. Keep a short list of representative URLs — one per template — and re-validate them after every release. A site-wide SEO Audit reports invalid or missing structured data across all pages, which catches template-level breakage that spot checks miss. Add the check to your regular technical SEO audit, and use the audit guide to prioritise what you find.

Frequently asked questions

Should I fix warnings as well as errors?

Fix errors first — they block features. Address warnings when the page genuinely has the missing information; ignore ones that would require inventing data.

My markup is valid but no rich result appears. Why?

Valid markup only makes a page eligible. Search engines decide whether to show a rich result, and some features are restricted to certain sites or queries.

How often should I re-validate?

After every template, theme or plugin change, and on a regular schedule — monthly is reasonable for most sites.

Next step

Pick one URL per template, run each through a syntax validator and the Rich Results Test, and fix the errors you find before working on warnings.

Illustration of a tree of connected structured-data nodes

Technical SEO

Schema Markup for AI Search and Modern SEO

Structured data helps search engines understand your pages. Learn the fundamentals, the types worth adding, how to validate them and what schema can't do.

6 min read