MetaMap · API Governance Rules
MetaMap API Rules
Spectral linting rules defining API design standards and conventions for MetaMap.
6 Rules
error 1
warn 4
Rule Categories
metamap
Rules
warn
metamap-server-url
All paths must be served from api.prod.metamap.com (or the documented media / legacy hosts).
$.servers[*].url
error
metamap-operation-tagged
Every operation must be assigned to exactly one of the MetaMap business surfaces.
$.paths[*][get,post,put,delete,patch]
warn
metamap-known-tag
Operation tags must be one of the canonical MetaMap categories.
$.paths[*][get,post,put,delete,patch].tags[*]
warn
metamap-operation-id-kebab
operationId must be lowercase kebab-case (or snake_case fallback).
$.paths[*][get,post,put,delete,patch].operationId
warn
metamap-bearer-security
Non-OAuth-token-exchange operations must declare bearerAuth or inherit a global bearerAuth security requirement.
$.paths[?(@path !~ '/oauth')][*].security
hint
metamap-summary-title-case
Operation summary should be Title Case.
$.paths[*][get,post,put,delete,patch].summary