Dotdash Meredith / People Inc · API Governance Rules

Dotdash Meredith / People Inc API Rules

Spectral linting rules defining API design standards and conventions for Dotdash Meredith / People Inc.

Dotdash Meredith / People Inc API Rules is a Spectral governance ruleset published by Dotdash Meredith / People Inc on the APIs.io network, containing 2 lint rules.

The ruleset includes 2 error-severity rules.

Tagged areas include Media, Publishing, Magazines, Content, and Advertising.

Rulesets can be applied to your own OpenAPI specs via Spectral to enforce the same governance standards.

2 Rules error 2
View Rules File View on GitHub

Rule Categories

rss

Rules

error
rss-feed-schema-id-required
People Inc RSS-feed JSON Schema artifacts MUST declare a stable $id under the meredith repo path.
$
error
rss-feed-title-required
Every channel object MUST include title, link, description, items.
$.properties.channel.required

Spectral Ruleset

people-inc-rss-rules.yml Raw ↑
extends: ["spectral:oas"]
rules:
  rss-feed-schema-id-required:
    description: People Inc RSS-feed JSON Schema artifacts MUST declare a stable $id under the meredith repo path.
    severity: error
    given: "$"
    then:
      field: "$id"
      function: pattern
      functionOptions:
        match: "^https://raw.githubusercontent.com/api-evangelist/meredith/main/json-schema/.+\\.json$"
  rss-feed-title-required:
    description: Every channel object MUST include title, link, description, items.
    severity: error
    given: "$.properties.channel.required"
    then:
      function: schema
      functionOptions:
        schema:
          type: array
          contains:
            enum: [title, link, description, items]