University of California, San Diego · API Governance Rules

University of California, San Diego API Rules

Spectral linting rules defining API design standards and conventions for University of California, San Diego.

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

Rule Categories

ucsd

Rules

warn
ucsd-info-contact
TritonAI API info object should include a contact (tritonai@ucsd.edu).
$.info
warn
ucsd-bearer-security
TritonAI requires an issued API key as a Bearer token.
$.components.securitySchemes
info
ucsd-openai-compatible-paths
Core inference paths should follow the OpenAI-compatible /v1 convention.
$.paths[*]~
error
ucsd-operation-id
Every operation must declare an operationId.
$.paths[*][get,post,put,delete,patch]
warn
ucsd-operation-summary
Every operation should declare a human-readable summary.
$.paths[*][get,post,put,delete,patch]
info
ucsd-validation-error-shape
Validation errors should reference the HTTPValidationError schema.
$.paths[*][*].responses['422'].content['application/json'].schema

Spectral Ruleset

Raw ↑
extends: []
formats:
  - oas3
documentationUrl: https://tritonai.ucsd.edu/developer-apis/index.html
rules:
  ucsd-info-contact:
    description: TritonAI API info object should include a contact (tritonai@ucsd.edu).
    severity: warn
    given: $.info
    then:
      field: contact
      function: truthy
  ucsd-bearer-security:
    description: TritonAI requires an issued API key as a Bearer token.
    severity: warn
    given: $.components.securitySchemes
    then:
      field: bearerAuth
      function: truthy
  ucsd-openai-compatible-paths:
    description: Core inference paths should follow the OpenAI-compatible /v1 convention.
    severity: info
    given: $.paths[*]~
    then:
      function: pattern
      functionOptions:
        match: "^/(v1/)?(chat/completions|completions|embeddings|models|images/generations)$|^/audio/(speech|transcriptions)$"
  ucsd-operation-id:
    description: Every operation must declare an operationId.
    severity: error
    given: $.paths[*][get,post,put,delete,patch]
    then:
      field: operationId
      function: truthy
  ucsd-operation-summary:
    description: Every operation should declare a human-readable summary.
    severity: warn
    given: $.paths[*][get,post,put,delete,patch]
    then:
      field: summary
      function: truthy
  ucsd-validation-error-shape:
    description: Validation errors should reference the HTTPValidationError schema.
    severity: info
    given: $.paths[*][*].responses['422'].content['application/json'].schema
    then:
      field: $ref
      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/ucsd-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.