US Citizenship and Immigration Services · API Governance Rules
US Citizenship and Immigration Services API Rules
Spectral linting rules defining API design standards and conventions for US Citizenship and Immigration Services.
12 Rules
error 3
warn 8
info 1
Rule Categories
uscis
Rules
warn
uscis-info-contact
USCIS API specs must include contact information
$.info
warn
uscis-operation-tags
All operations must be tagged
$.paths[*][get,post,put,patch,delete]
error
uscis-operation-summary
All operations must have a summary in Title Case
$.paths[*][get,post,put,patch,delete]
error
uscis-operation-id
All operations must have an operationId
$.paths[*][get,post,put,patch,delete]
warn
uscis-operation-description
All operations must have a description
$.paths[*][get,post,put,patch,delete]
warn
uscis-parameter-description
All parameters must have a description
$.paths[*][get,post,put,patch,delete].parameters[*]
warn
uscis-oauth2-security
USCIS APIs should use OAuth 2.0 security
$.components.securitySchemes
warn
uscis-response-schema
All 200/201 responses must have a schema
$.paths[*][get,post,put,patch,delete].responses[200,201]
info
uscis-receipt-number-pattern
Receipt number path parameters should have a pattern
$.paths[*][get,post,put,patch,delete].parameters[?(@.name == 'receiptNumber')]
warn
uscis-error-responses
Operations should document 401 and 429 error responses
$.paths[*][get,post,put,patch,delete].responses
warn
uscis-json-content-type
USCIS API should use JSON content types
$.paths[*][post,put,patch].requestBody.content
error
uscis-version-in-info
API must specify version
$.info