Riot Games · API Governance Rules

Riot Games API Rules

Spectral linting rules defining API design standards and conventions for Riot Games.

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

Rule Categories

riot

Rules

warn
riot-operation-summary-title-case
All operation summaries must use Title Case
$.paths[*][get,post,put,patch,delete].summary
warn
riot-operation-id-camel-case
Operation IDs should be camelCase
$.paths[*][get,post,put,patch,delete].operationId
warn
riot-tags-title-case
Tags must use Title Case
$.paths[*][get,post,put,patch,delete].tags[*]
error
riot-must-have-api-key-security
All operations must require X-Riot-Token API key
$.paths[*][get,post,put,patch,delete]
error
riot-responses-must-include-200
GET operations must return a 200 response
$.paths[*].get
warn
riot-must-have-403-response
Operations must include 403 Forbidden response for API key errors
$.paths[*][get,post,put,patch,delete].responses
warn
riot-must-have-404-response
Operations must include 404 Not Found response for resource lookups
$.paths[*].get.responses
error
riot-path-parameters-required
Path parameters must be marked as required
$.paths[*][get,post,put,patch,delete].parameters[?(@.in == 'path')]
error
riot-servers-must-be-https
All servers must use HTTPS
$.servers[*].url
info
riot-encrypted-ids-in-descriptions
Operations using encrypted IDs should document encryption in description
$.paths[*][get,post,put,patch,delete].parameters[?(@.name =~ /encrypted/i)]

Spectral Ruleset

Raw ↑
rules:
  riot-operation-summary-title-case:
    description: All operation summaries must use Title Case
    severity: warn
    given: "$.paths[*][get,post,put,patch,delete].summary"
    then:
      function: pattern
      functionOptions:
        match: "^([A-Z][a-zA-Z]* )*[A-Z][a-zA-Z]*$"

  riot-operation-id-camel-case:
    description: Operation IDs should be camelCase
    severity: warn
    given: "$.paths[*][get,post,put,patch,delete].operationId"
    then:
      function: pattern
      functionOptions:
        match: "^[a-z][a-zA-Z0-9]*$"

  riot-tags-title-case:
    description: Tags must use Title Case
    severity: warn
    given: "$.paths[*][get,post,put,patch,delete].tags[*]"
    then:
      function: pattern
      functionOptions:
        match: "^[A-Z][a-zA-Z0-9 ]*$"

  riot-must-have-api-key-security:
    description: All operations must require X-Riot-Token API key
    severity: error
    given: "$.paths[*][get,post,put,patch,delete]"
    then:
      field: security
      function: defined

  riot-responses-must-include-200:
    description: GET operations must return a 200 response
    severity: error
    given: "$.paths[*].get"
    then:
      field: responses.200
      function: defined

  riot-must-have-403-response:
    description: Operations must include 403 Forbidden response for API key errors
    severity: warn
    given: "$.paths[*][get,post,put,patch,delete].responses"
    then:
      field: "403"
      function: defined

  riot-must-have-404-response:
    description: Operations must include 404 Not Found response for resource lookups
    severity: warn
    given: "$.paths[*].get.responses"
    then:
      field: "404"
      function: defined

  riot-path-parameters-required:
    description: Path parameters must be marked as required
    severity: error
    given: "$.paths[*][get,post,put,patch,delete].parameters[?(@.in == 'path')]"
    then:
      field: required
      function: truthy

  riot-servers-must-be-https:
    description: All servers must use HTTPS
    severity: error
    given: "$.servers[*].url"
    then:
      function: pattern
      functionOptions:
        match: "^https://"

  riot-encrypted-ids-in-descriptions:
    description: Operations using encrypted IDs should document encryption in description
    severity: info
    given: "$.paths[*][get,post,put,patch,delete].parameters[?(@.name =~ /encrypted/i)]"
    then:
      field: description
      function: defined

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/riot-games-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 form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

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