SAML · API Governance Rules
SAML API Rules
Spectral linting rules defining API design standards and conventions for SAML.
9 Rules
error 2
warn 5
info 2
Rule Categories
saml
Rules
warn
saml-summary-title-case
Operation summaries must use Title Case per SAML spec naming conventions
$.paths[*][*].summary
info
saml-security-schemes-defined
SAML endpoints require digital signature verification; security schemes should be documented
$.paths[*][*]
warn
saml-samlrequest-parameter
SAML SSO redirect binding GET endpoints must define a SAMLRequest parameter
$.paths['/saml/sso/redirect'].get.parameters[*]
error
saml-relay-state-max-length
RelayState parameter must enforce 80 byte maximum per SAML spec Section 3.4.3
$.paths[*][*].parameters[?(@.name=='RelayState')].schema
warn
saml-response-xml-content-type
SAML XML responses should specify application/xml or text/xml content type
$.paths[*][*].responses[*].content
error
saml-operation-id-required
All operations must have an operationId per SAML API standards
$.paths[*][*]
warn
saml-tags-defined
Operations must use defined tags matching SAML specification domains
$.paths[*][*].tags[*]
warn
saml-parameter-descriptions
All parameters must have descriptions explaining SAML-specific constraints
$.paths[*][*].parameters[*]
info
saml-response-400-defined
SAML endpoints should define 400 Bad Request for malformed SAML messages
$.paths[*][*].responses