Triton Inference Server · API Governance Rules

Triton Inference Server API Rules

Spectral linting rules defining API design standards and conventions for Triton Inference Server.

8 Rules error 1 warn 5 info 2
View Rules File View on GitHub

Rule Categories

triton

Rules

warn
triton-operation-id-camel-case
Operation IDs must use camelCase
$.paths[*][*].operationId
warn
triton-require-tags
All operations must have at least one tag
$.paths[*][*]
warn
triton-require-description
All operations must have a description
$.paths[*][*]
error
triton-path-v2-prefix
All paths must begin with /v2 (KServe V2 protocol)
$.paths[*]~
info
triton-path-snake-case
Path segments (excluding path parameters) should use snake_case or be known keywords
$.paths[*]~
warn
triton-error-response-has-schema
Error responses should define a schema
$.paths[*][*].responses['400']
warn
triton-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
info
triton-no-auth-required
Triton server endpoints are typically deployed without authentication (auth handled at network layer)
$.paths[*][*].security

Spectral Ruleset

Raw ↑
extends: spectral:oas
rules:
  # Triton Inference Server API Convention Rules

  triton-operation-id-camel-case:
    description: Operation IDs must use camelCase
    message: "Operation ID '{{value}}' must use camelCase (e.g. modelInfer, repositoryIndex)"
    severity: warn
    given: "$.paths[*][*].operationId"
    then:
      function: pattern
      functionOptions:
        match: "^[a-z][a-zA-Z0-9]+$"

  triton-require-tags:
    description: All operations must have at least one tag
    message: Operations must be tagged (Health, Inference, Model Metadata, Model Repository, Statistics, etc.)
    severity: warn
    given: "$.paths[*][*]"
    then:
      field: tags
      function: truthy

  triton-require-description:
    description: All operations must have a description
    message: Operations must have a description
    severity: warn
    given: "$.paths[*][*]"
    then:
      field: description
      function: truthy

  triton-path-v2-prefix:
    description: All paths must begin with /v2 (KServe V2 protocol)
    message: "Path '{{value}}' must start with /v2"
    severity: error
    given: "$.paths[*]~"
    then:
      function: pattern
      functionOptions:
        match: "^/v2"

  triton-path-snake-case:
    description: Path segments (excluding path parameters) should use snake_case or be known keywords
    message: "Path segments should use snake_case"
    severity: info
    given: "$.paths[*]~"
    then:
      function: pattern
      functionOptions:
        match: "^(/v2)(/[a-z0-9_{}]+)*$"

  triton-error-response-has-schema:
    description: Error responses should define a schema
    message: Error responses must define content schema
    severity: warn
    given: "$.paths[*][*].responses['400']"
    then:
      field: content
      function: truthy

  triton-summary-title-case:
    description: Operation summaries must use Title Case
    message: "Summary '{{value}}' must use Title Case"
    severity: warn
    given: "$.paths[*][*].summary"
    then:
      function: pattern
      functionOptions:
        match: "^[A-Z]"

  triton-no-auth-required:
    description: Triton server endpoints are typically deployed without authentication (auth handled at network layer)
    message: Triton HTTP API has no authentication by default; document network-level security instead
    severity: info
    given: "$.paths[*][*].security"
    then:
      function: falsy

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/triton-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.