PlaceKitten · API Governance Rules
PlaceKitten API Rules
Spectral linting rules defining API design standards and conventions for PlaceKitten.
6 Rules
error 3
warn 3
Rule Categories
placekitten
Rules
error
placekitten-path-shape
PlaceKitten paths must include {width} and {height} path parameters.
$.paths[*]
error
placekitten-width-parameter
width path parameter must be a positive integer in pixels.
$..parameters[?(@.name=='width')]
error
placekitten-height-parameter
height path parameter must be a positive integer in pixels.
$..parameters[?(@.name=='height')]
warn
placekitten-image-response
Successful responses must return image/jpeg payloads.
$.paths[*].get.responses['200'].content
warn
placekitten-operation-summary-title-case
Operation summaries should use Title Case.
$.paths[*][get,put,post,delete,patch,options,head].summary
warn
placekitten-deprecation-notice
The info block must carry x-status and x-deprecation-notice while the service is offline.
$.info