Losant · API Governance Rules
Losant API Rules
Spectral linting rules defining API design standards and conventions for Losant.
5 Rules
error 2
warn 3
Rule Categories
losant
Rules
error
losant-id-pattern
Losant resource IDs MUST match the 24-hex-char MongoDB ObjectId pattern.
$.paths.*..parameters[?(@.name && @.name =~ /Id$/)].schema
warn
losant-application-scope
Application-scoped paths MUST include {applicationId} path parameter.
$.paths[?(@property =~ /^\/applications\//)]
warn
losant-title-case-summary
OpenAPI operation summaries SHOULD use Title Case.
$.paths.*.*.summary
error
losant-bearer-auth-required
All Losant Platform operations MUST require BearerAuth.
$.paths.*.*.security[*]
warn
losant-error-schema
Error responses SHOULD reference the shared error schema.
$.paths.*.*.responses[?(@property =~ /^4/ || @property =~ /^5/)].content.application/json.schema