Schema.org · API Governance Rules
Schema.org API Rules
Spectral linting rules defining API design standards and conventions for Schema.org.
10 Rules
error 5
warn 5
Rule Categories
schema
Rules
error
schema-org-context-required
JSON-LD documents must include @context pointing to schema.org
$
error
schema-org-type-required
JSON-LD documents must include @type declaring the Schema.org type
$
warn
schema-org-name-recommended
Most Schema.org types should have a name property
$[?(@type)]
error
schema-org-url-format
URL properties must be valid URIs
$.url
warn
schema-org-same-as-format
sameAs references should be valid URIs
$.sameAs
warn
schema-org-aggregate-rating-values
AggregateRating must include ratingValue
$[?(@type == 'AggregateRating')]
error
schema-org-offer-price-currency
Offers must include both price and priceCurrency
$[?(@type == 'Offer')]
warn
schema-org-webapi-documentation
WebAPI types should include documentation URL
$[?(@type == 'WebAPI')]
warn
schema-org-organization-url
Organization entities should include a URL
$[?(@type == 'Organization')]
error
schema-org-person-name
Person entities must include a name
$[?(@type == 'Person')]