UNPKG

structured-data-testing-tool

Version:

A library and command line tool to help test for Structured Data.

26 lines (24 loc) 714 B
const schema = 'ClaimReview' const ClaimReview = { name: schema, description: 'A fact-checking review of claims made (or reported) in some creative work (referenced via itemReviewed).', schema: schema, conditional: { test: schema }, tests: [ // Expected by Google { test: `${schema}` }, { test: `${schema}[*]."@type"`, expect: schema }, { test: `${schema}[*].url` }, { test: `${schema}[*].reviewRating` }, { test: `${schema}[*].claimReviewed` }, // Warnings { test: `${schema}[*].author`, warning: true }, { test: `${schema}[*].datePublished`, warning: true }, { test: `${schema}[*].itemReviewed`, warning: true }, ], } module.exports = { ClaimReview }