Trustwell · API Governance Rules
Trustwell API Rules
Spectral linting rules defining API design standards and conventions for Trustwell.
10 Rules
error 1
warn 6
info 3
Rule Categories
trustwell
Rules
warn
trustwell-operation-ids-camel-case
Trustwell operation IDs must use camelCase format.
$.paths.*[get,post,put,patch,delete]
warn
trustwell-versioned-paths
Trustwell API paths should be versioned with /v1/ prefix.
$.paths
error
trustwell-api-key-security
All Trustwell API endpoints must require X-API-KEY authentication.
$.paths.*[get,post,put,patch,delete]
info
trustwell-domain-prefix-paths
Trustwell FoodLogiQ paths must use domain-specific prefixes for clarity.
$.paths
warn
trustwell-operations-tagged
All Trustwell operations must have tags.
$.paths.*[get,post,put,patch,delete]
warn
trustwell-response-200-json
GET operations must include a 200 response with JSON content.
$.paths.*[get].responses.200
info
trustwell-post-201-response
POST creation operations should return 201 status.
$.paths.*[post]
warn
trustwell-date-time-format
Date/time fields must use date-time format.
$.components.schemas.*.properties[createdAt,updatedAt,resolvedAt]
warn
trustwell-id-string-type
Identifier fields (id, supplierId, etc.) must be string type.
$.components.schemas.*.properties[id,supplierId,productId,incidentId,recallId]
info
trustwell-pagination-params
Collection endpoints should support page and perPage pagination.
$.paths.*[get]