DeepSeek · API Governance Rules

DeepSeek API Rules

Spectral linting rules defining API design standards and conventions for DeepSeek.

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

Rule Categories

deepseek

Rules

warn
deepseek-fim-beta-server
Servers should reference the DeepSeek beta endpoint.
$.servers[*].url
error
deepseek-fim-completions-path
API should expose the /completions resource for FIM completions.
$.paths
warn
deepseek-fim-operation-id
Operations should declare an operationId.
$.paths[*][*]

Spectral Ruleset

Raw ↑
extends:
  - spectral:oas
rules:
  deepseek-fim-beta-server:
    description: Servers should reference the DeepSeek beta endpoint.
    given: $.servers[*].url
    severity: warn
    then:
      function: pattern
      functionOptions:
        match: "deepseek.com"
  deepseek-fim-completions-path:
    description: API should expose the /completions resource for FIM completions.
    given: $.paths
    severity: error
    then:
      function: pattern
      functionOptions:
        match: "/completions"
  deepseek-fim-operation-id:
    description: Operations should declare an operationId.
    given: $.paths[*][*]
    severity: warn
    then:
      field: operationId
      function: truthy