Modal · API Governance Rules
Modal API Rules
Spectral linting rules defining API design standards and conventions for Modal.
7 Rules
error 4
warn 3
Rule Categories
modal
Rules
error
modal-info-title-set
Modal OpenAPI documents must have a descriptive title that mentions Modal.
$.info.title
error
modal-info-version-set
Modal OpenAPI documents must specify a version.
$.info
error
modal-servers-present
Modal OpenAPI documents must declare at least one server.
$.servers
warn
modal-operation-summary-title-case
Operation summaries should use Title Case.
$.paths..[?(@.summary)]
warn
modal-operation-id-camel-case
Operation IDs should be camelCase.
$.paths..[?(@.operationId)]
error
modal-bearer-security
Every Modal operation must require ModalToken bearer auth.
$.security
warn
modal-tag-defined
All operations must be tagged.
$.paths..[?(@.tags)]