TrueFoundry · API Governance Rules
TrueFoundry API Rules
Spectral linting rules defining API design standards and conventions for TrueFoundry.
9 Rules
error 3
warn 4
Rule Categories
truefoundry
Rules
warn
truefoundry-operation-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
error
truefoundry-operation-tags-required
All operations must have at least one tag
$.paths[*][*]
error
truefoundry-bearer-auth-required
API must use Bearer authentication
$.components.securitySchemes.*
warn
truefoundry-model-param-required
LLM operations should require a model parameter
$.paths[/chat/completions,/embeddings,/rerank][post].requestBody.content.application/json.schema.required
error
truefoundry-openai-compatible-success
POST endpoints should return 200 or 201 for success
$.paths[*][post]
warn
truefoundry-error-response-shape
Error responses should include an error object with message field
$.paths[*][*].responses[4*,5*].content.application/json.schema.properties
hint
truefoundry-usage-in-response
Completion responses should include usage statistics
$.components.schemas.ChatCompletionResponse.properties
hint
truefoundry-streaming-documented
Chat completions should document streaming support
$.paths[/chat/completions][post].requestBody.content.application/json.schema.properties
warn
truefoundry-openai-compatibility
The API follows OpenAI-compatible conventions for model, messages, and response format
$.paths[/chat/completions][post].requestBody.content.application/json.schema.required