MutterCorp
MutterCorpNotice · Notícias
Programação·

How to validate JSON-LD in a CI pipeline with Node and a schema validator

How to validate JSON-LD in a CI pipeline with Node and a schema validator

To validate JSON-LD in CI, run a script after the build that reads every HTML file, parses each JSON-LD block, checks it against a JSON Schema and exits with code 1 on any error. This post gives a Node script that does this with Ajv, tested locally, and says exactly what it does not check. Usman Ishaq is a semantic SEO strategist and consultant, and the founder of Digital Vikingz. Markup is written from the visible page outward, and a template change can silently break it. A check in the pipeli…

Publicado no Notice. Categoria: Programação.

Mais recentes em Programação