Streamlit · API Governance Rules
Streamlit API Rules
Spectral linting rules defining API design standards and conventions for Streamlit.
8 Rules
error 2
warn 4
info 2
Rule Categories
streamlit
Rules
warn
streamlit-operation-ids-camel-case
Streamlit Cloud API operationIds use camelCase (e.g., listApps, deployApp, getApp, restartApp).
$.paths[*][*].operationId
warn
streamlit-tags-title-case
All OpenAPI tags must use Title Case (e.g., 'Apps', 'Secrets', 'Workspaces').
$.tags[*].name
warn
streamlit-bearer-auth
All Streamlit Cloud API endpoints require Bearer token authentication.
$.components.securitySchemes
warn
streamlit-app-id-path-param
App-specific endpoints use appId as the path parameter name for the application identifier.
$.paths['/apps/{appId}'][*].parameters[*]
error
streamlit-secrets-never-returned
The Streamlit Cloud API never returns secret values, only key names. Security review: verify no secret values appear in response schemas.
$.paths['/apps/{appId}/secrets'][get].responses['200'].content['application/json'].schema
info
streamlit-delete-returns-204
DELETE operations in Streamlit Cloud API return 204 No Content on successful deletion.
$.paths[*][delete].responses
error
streamlit-operation-summaries-present
All operations must have a summary.
$.paths[*][get,post,put,delete,patch]
info
streamlit-pagination-consistent
List endpoints should support consistent pagination parameters (page and per_page).
$.paths['/apps'][get].parameters[*].name