EPFL · API Governance Rules
EPFL API Rules
Spectral linting rules defining API design standards and conventions for EPFL.
5 Rules
error 1
warn 3
info 1
Rule Categories
epfl
Rules
warn
epfl-info-contact
API info object should declare a contact for the EPFL API.
$.info
error
epfl-servers-https
EPFL API servers must use HTTPS.
$.servers[*].url
warn
epfl-collection-pagination
EPFL collection (list) endpoints should expose DRF limit/offset pagination parameters.
$.paths[?(@property.match(/\/$/))].get.parameters
warn
epfl-operation-id
Every operation should have an operationId.
$.paths[*][*]
info
epfl-paginated-list-envelope
Paginated list response schemas should follow the DRF envelope with count/next/previous/results.
$.components.schemas[?(@property.match(/^Paginated/))]