flatin.pt · API Governance Rules
flatin.pt API Rules
Spectral linting rules defining API design standards and conventions for flatin.pt.
9 Rules
error 3
warn 4
info 2
Rule Categories
flatin
Rules
error
flatin-paths-versioned
Every public path lives under /api/v1/, so a breaking change can ship as /api/v2/ next to it.
$.paths
warn
flatin-paths-lowercase
Path segments are lowercase; parameters are the only exception.
$.paths
error
flatin-servers-https
Servers are reached over HTTPS only.
$.servers[*].url
error
flatin-operation-summary
Every operation has a short English summary; catalogs and MCP clients show it as the name.
$.paths[*][get,post,put,patch,delete]
warn
flatin-summary-length
Summaries stay short enough to fit a catalog card.
$.paths[*][get,post,put,patch,delete].summary
warn
flatin-info-license
The licence of the data is stated in the schema itself.
$.info
warn
flatin-info-contact-email
A reachable contact address is in the schema.
$.info.contact
info
flatin-no-security-schemes
The API is keyless by design; a security scheme would promise authentication that does not exist.
$.components
info
flatin-no-trailing-slash
Paths do not end with a slash.
$.paths
Spectral Ruleset
Work with this as data
Every ruleset here is available over the APIs.io API and to AI agents over MCP.