Refinitiv Eikon · API Governance Rules

Refinitiv Eikon API Rules

Spectral linting rules defining API design standards and conventions for Refinitiv Eikon.

9 Rules error 2 warn 6 info 1
View Rules File View on GitHub

Rule Categories

refinitiv

Rules

warn
refinitiv-eikon-operation-summary-title-case
All operation summaries must use Title Case.
$.paths[*][*].summary
warn
refinitiv-eikon-operation-id-camel-case
OperationIds must use camelCase.
$.paths[*][*].operationId
warn
refinitiv-eikon-requires-auth
All Refinitiv Eikon operations (except token endpoints) must declare bearer or token authentication.
$.paths[?(!~ /.*[Tt]oken.*/i)][*]
error
refinitiv-eikon-response-200-defined
All operations must define a 200 or 201 success response.
$.paths[*][*].responses
warn
refinitiv-eikon-path-kebab-case
Path segments must use kebab-case or camelCase (no underscores).
$.paths
warn
refinitiv-eikon-tags-defined
All operations must include at least one tag.
$.paths[*][*]
info
refinitiv-eikon-bearer-format
Bearer token scheme must specify bearerFormat for documentation clarity.
$.components.securitySchemes[?(@.type=='http' && @.scheme=='bearer')]
warn
refinitiv-eikon-info-contact
API info must include a contact object with a URL.
$.info
error
refinitiv-eikon-servers-defined
API must define at least one server.
$

Spectral Ruleset

Raw ↑
extends: spectral:oas
rules:
  # Refinitiv Eikon API naming conventions
  refinitiv-eikon-operation-summary-title-case:
    description: All operation summaries must use Title Case.
    message: "Operation summary '{{value}}' must use Title Case."
    severity: warn
    given: "$.paths[*][*].summary"
    then:
      function: pattern
      functionOptions:
        match: "^[A-Z][a-zA-Z0-9 '\\-]*$"

  refinitiv-eikon-operation-id-camel-case:
    description: OperationIds must use camelCase.
    message: "OperationId '{{value}}' must use camelCase."
    severity: warn
    given: "$.paths[*][*].operationId"
    then:
      function: pattern
      functionOptions:
        match: "^[a-z][a-zA-Z0-9]*$"

  refinitiv-eikon-requires-auth:
    description: >-
      All Refinitiv Eikon operations (except token endpoints) must declare
      bearer or token authentication.
    message: "Operation must declare security requirements."
    severity: warn
    given: "$.paths[?(!~ /.*[Tt]oken.*/i)][*]"
    then:
      field: security
      function: defined

  refinitiv-eikon-response-200-defined:
    description: All operations must define a 200 or 201 success response.
    message: "Operation must define at least one success (2xx) response."
    severity: error
    given: "$.paths[*][*].responses"
    then:
      function: schema
      functionOptions:
        schema:
          anyOf:
            - required: ["200"]
            - required: ["201"]
            - required: ["202"]
            - required: ["204"]

  refinitiv-eikon-path-kebab-case:
    description: Path segments must use kebab-case or camelCase (no underscores).
    message: "Path '{{path}}' should not contain underscores in URL segments."
    severity: warn
    given: "$.paths"
    then:
      function: pattern
      functionOptions:
        notMatch: "^.*_[a-z].*$"

  refinitiv-eikon-tags-defined:
    description: All operations must include at least one tag.
    message: "Operation must include at least one tag."
    severity: warn
    given: "$.paths[*][*]"
    then:
      field: tags
      function: truthy

  refinitiv-eikon-bearer-format:
    description: >-
      Bearer token scheme must specify bearerFormat for documentation clarity.
    message: "Bearer auth scheme should define bearerFormat."
    severity: info
    given: "$.components.securitySchemes[?(@.type=='http' && @.scheme=='bearer')]"
    then:
      field: bearerFormat
      function: defined

  refinitiv-eikon-info-contact:
    description: API info must include a contact object with a URL.
    message: "API info.contact must be defined with a URL."
    severity: warn
    given: "$.info"
    then:
      field: contact
      function: defined

  refinitiv-eikon-servers-defined:
    description: API must define at least one server.
    message: "API must have at least one server defined."
    severity: error
    given: "$"
    then:
      field: servers
      function: truthy

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/refinitiv-eikon-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.