Random User Generator · API Governance Rules
Random User Generator API Rules
Spectral linting rules defining API design standards and conventions for Random User Generator.
10 Rules
error 6
warn 3
info 1
Rule Categories
randomuser
Rules
error
randomuser-operation-id-camelcase
Operation IDs MUST be camelCase (generateUsers, generateUsersVersioned).
$.paths[*][get,post,put,patch,delete].operationId
warn
randomuser-summary-title-case
Operation summaries MUST be in Title Case.
$.paths[*][get,post,put,patch,delete].summary
error
randomuser-operation-must-have-tag
Every operation MUST be tagged (Users for this API).
$.paths[*][get,post,put,patch,delete]
error
randomuser-results-bounded
The `results` query parameter MUST cap at 5000 to match the documented limit.
$.paths[*].get.parameters[?(@.name=='results')].schema
warn
randomuser-gender-enum
The `gender` query parameter MUST enumerate male/female.
$.paths[*].get.parameters[?(@.name=='gender')].schema
warn
randomuser-format-enum
The `format` query parameter MUST enumerate the documented serializers.
$.paths[*].get.parameters[?(@.name=='format')].schema.enum
error
randomuser-no-auth
Random User Generator is unauthenticated; do NOT define securitySchemes.
$.components.securitySchemes
error
randomuser-server-https
Servers MUST be HTTPS.
$.servers[*].url
error
randomuser-user-schema-present
Components MUST define a User schema (the canonical resource).
$.components.schemas
info
randomuser-microcks-extension
Each operation SHOULD carry an x-microcks-operation block so it can mock cleanly.
$.paths[*][get,post,put,patch,delete]