CCH Tagetik · API Governance Rules

CCH Tagetik API Rules

Spectral linting rules defining API design standards and conventions for CCH Tagetik.

7 Rules error 2 warn 4 info 1
View Rules File View on GitHub

Rule Categories

tagetik

Rules

error
tagetik-odata-servers-defined
CCH Tagetik OData API must define servers with environment variables
$.servers
warn
tagetik-odata-operations-have-descriptions
All OData operations should have descriptions
$.paths[*][get,post,put,patch,delete]
info
tagetik-odata-query-params-documented
OData query parameters ($filter, $select, etc.) should be documented
$.paths[*].get.parameters
warn
tagetik-auth-both-methods-documented
Both Basic and OAuth2 authentication must be documented
$.components.securitySchemes
warn
tagetik-odata-response-uses-value-array
OData collection responses must include a value array
$.components.schemas.ODataResponse.properties
warn
tagetik-schemas-have-descriptions
All schema components should have descriptions
$.components.schemas[*]
error
tagetik-amount-fields-are-numbers
Financial amount fields must be numeric type
$.components.schemas[*].properties[Amount,AmountLC]

Spectral Ruleset

Raw ↑
extends: spectral:oas
rules:
  tagetik-odata-servers-defined:
    description: CCH Tagetik OData API must define servers with environment variables
    message: "API must define at least one server URL"
    severity: error
    given: "$.servers"
    then:
      function: length
      functionOptions:
        min: 1

  tagetik-odata-operations-have-descriptions:
    description: All OData operations should have descriptions
    message: "Operation '{{property}}' is missing a description"
    severity: warn
    given: "$.paths[*][get,post,put,patch,delete]"
    then:
      field: description
      function: truthy

  tagetik-odata-query-params-documented:
    description: OData query parameters ($filter, $select, etc.) should be documented
    message: "OData operations should document standard query parameters"
    severity: info
    given: "$.paths[*].get.parameters"
    then:
      function: truthy

  tagetik-auth-both-methods-documented:
    description: Both Basic and OAuth2 authentication must be documented
    message: "API must document both BasicAuth and OAuth2 security schemes"
    severity: warn
    given: "$.components.securitySchemes"
    then:
      function: truthy

  tagetik-odata-response-uses-value-array:
    description: OData collection responses must include a value array
    message: "OData response schema should include a 'value' property containing an array"
    severity: warn
    given: "$.components.schemas.ODataResponse.properties"
    then:
      field: value
      function: truthy

  tagetik-schemas-have-descriptions:
    description: All schema components should have descriptions
    message: "Schema '{{property}}' is missing a description"
    severity: warn
    given: "$.components.schemas[*]"
    then:
      field: description
      function: truthy

  tagetik-amount-fields-are-numbers:
    description: Financial amount fields must be numeric type
    message: "Amount field should be type: number"
    severity: error
    given: "$.components.schemas[*].properties[Amount,AmountLC]"
    then:
      field: type
      function: pattern
      functionOptions:
        match: "^number$"

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/cch-tagetik-odata-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.