Login.gov · API Governance Rules
Login.gov API Rules
Spectral linting rules defining API design standards and conventions for Login.gov.
7 Rules
error 5
warn 2
Rule Categories
login
Rules
warn
login-gov-title-case-summaries
Operation summaries should use Title Case (Login.gov OIDC/SAML house style).
$.paths[*][*].summary
warn
login-gov-operation-id-camel-case
operationId should be camelCase.
$.paths[*][*].operationId
error
login-gov-require-tag
Every operation must be tagged.
$.paths[*][*]
error
login-gov-min-22-char-state-nonce
The `state` and `nonce` parameters MUST be at least 22 characters long.
$.paths['/openid_connect/authorize'].get.parameters[?(@.name=='state' || @.name=='nonce')].schema
error
login-gov-require-prompt-select-account
Authorization requests must declare prompt=select_account.
$.paths['/openid_connect/authorize'].get.parameters[?(@.name=='prompt')].schema.enum
error
login-gov-response-type-code-only
Login.gov supports only response_type=code (implicit flow is not supported).
$.paths['/openid_connect/authorize'].get.parameters[?(@.name=='response_type')].schema.enum
error
login-gov-bearer-on-userinfo
The userinfo endpoint must require bearer authentication.
$.paths['/api/openid_connect/userinfo'].get