Slashdot · API Governance Rules

Slashdot API Rules

Spectral linting rules defining API design standards and conventions for Slashdot.

5 Rules error 1 warn 4
View Rules File View on GitHub

Rule Categories

slashdot

Rules

warn
slashdot-feed-operation-summary
All feed operations must have a descriptive Title Case summary
$.paths[*][get].summary
warn
slashdot-feed-tag-required
All feed operations must include the Feeds tag
$.paths[*][get].tags
error
slashdot-response-200-required
All GET operations must define a 200 response
$.paths[*].get.responses
warn
slashdot-operation-id-camel-case
Operation IDs must use camelCase
$.paths[*][get].operationId
warn
slashdot-rss-content-type
RSS feed responses must declare application/rss+xml content type
$.paths[*].get.responses.200.content

Spectral Ruleset

Raw ↑
extends: spectral:oas
rules:
  slashdot-feed-operation-summary:
    description: All feed operations must have a descriptive Title Case summary
    message: 'Operation summary must be present and use Title Case'
    severity: warn
    given: '$.paths[*][get].summary'
    then:
      function: pattern
      functionOptions:
        match: '^[A-Z][a-zA-Z0-9 ()/-]*$'

  slashdot-feed-tag-required:
    description: All feed operations must include the Feeds tag
    message: 'Operations must include the "Feeds" tag'
    severity: warn
    given: '$.paths[*][get].tags'
    then:
      function: schema
      functionOptions:
        schema:
          type: array
          contains:
            type: string
            pattern: '^Feeds$'

  slashdot-response-200-required:
    description: All GET operations must define a 200 response
    message: 'GET operations must define a 200 OK response'
    severity: error
    given: '$.paths[*].get.responses'
    then:
      function: schema
      functionOptions:
        schema:
          type: object
          required:
            - '200'

  slashdot-operation-id-camel-case:
    description: Operation IDs must use camelCase
    message: 'operationId must use camelCase (e.g., getMainFeed not get_main_feed)'
    severity: warn
    given: '$.paths[*][get].operationId'
    then:
      function: pattern
      functionOptions:
        match: '^[a-z][a-zA-Z0-9]+$'

  slashdot-rss-content-type:
    description: RSS feed responses must declare application/rss+xml content type
    message: 'RSS feed responses should declare application/rss+xml content type'
    severity: warn
    given: '$.paths[*].get.responses.200.content'
    then:
      function: schema
      functionOptions:
        schema:
          type: object
          minProperties: 1

Work with this as data

Every ruleset here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for spectral rules

4 MCP tools reach this
  • find_rulesBrowse and filter every ruleset in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This ruleset
curl "https://apis.io/api/v1/rules/slashdot-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.