Red Hat Enterprise Linux · API Governance Rules
Red Hat Enterprise Linux API Rules
Spectral linting rules defining API design standards and conventions for Red Hat Enterprise Linux.
9 Rules
error 4
warn 5
Rule Categories
rhel
Rules
warn
rhel-operation-summary-title-case
All operation summaries must use Title Case
$.paths[*][get,post,put,patch,delete].summary
warn
rhel-operation-id-kebab-case
Operation IDs should be camelCase
$.paths[*][get,post,put,patch,delete].operationId
warn
rhel-tags-must-be-title-case
Tags must use Title Case
$.paths[*][get,post,put,patch,delete].tags[*]
error
rhel-must-have-security
All operations must define security requirements
$.paths[*][get,post,put,patch,delete]
error
rhel-responses-must-include-200
GET operations must return a 200 response
$.paths[*].get
warn
rhel-json-response-content-type
API responses must use application/json content type
$.paths[*][get].responses[200].content
warn
rhel-parameters-must-have-description
All parameters must have a description
$.paths[*][get,post,put,patch,delete].parameters[*]
error
rhel-path-params-must-be-required
Path parameters must be marked as required
$.paths[*][get,post,put,patch,delete].parameters[?(@.in == 'path')]
error
rhel-server-must-be-https
All servers must use HTTPS
$.servers[*].url