Ricoh USA · API Governance Rules
Ricoh USA API Rules
Spectral linting rules defining API design standards and conventions for Ricoh USA.
Ricoh USA API Rules is a Spectral governance ruleset published by Ricoh USA on the APIs.io network, containing 24 lint rules.
The ruleset includes 13 error-severity rules and 11 warning-severity rules.
Tagged areas include Printing, Document Management, Workplace Services, Imaging, and 360 Cameras.
Rulesets can be applied to your own OpenAPI specs via Spectral to enforce the same governance standards.
24 Rules
error 13
warn 11
Rule Categories
command
get
info
no
openapi
operation
paths
request
response
schema
servers
tag
Rules
warn
info-title-pattern
API info title should start with "RICOH THETA".
$.info.title
warn
info-description-required
API info description must be present and at least 50 characters.
$.info
error
info-version-required
API version must be defined.
$.info
error
openapi-version-3
Must use OpenAPI 3.x.
$
error
servers-must-be-defined
Servers array must be defined and non-empty.
$
warn
servers-description-required
Each server must have a description.
$.servers[*]
error
paths-osc-prefix
All paths should live under /osc/ (OSC Level 2 convention).
$.paths
warn
paths-no-trailing-slash
Paths must not end with a trailing slash.
$.paths
error
operation-summary-required
Every operation must have a summary.
$.paths[*][get,post,put,patch,delete]
warn
operation-summary-title-case
Operation summaries should be in Title Case.
$.paths[*][get,post,put,patch,delete].summary
warn
operation-description-required
Every operation should have a description.
$.paths[*][get,post,put,patch,delete]
error
operation-operationid-required
Every operation must have an operationId.
$.paths[*][get,post,put,patch,delete]
warn
operation-operationid-camelcase
OperationId should use camelCase.
$.paths[*][get,post,put,patch,delete].operationId
error
operation-tags-required
Every operation must have at least one tag.
$.paths[*][get,post,put,patch,delete]
error
command-execute-uses-post
/osc/commands/execute must be POST only (per OSC spec).
$.paths['/osc/commands/execute']
error
command-status-uses-post
/osc/commands/status must be POST only (per OSC spec).
$.paths['/osc/commands/status']
warn
tag-description-required
Global tags must have descriptions.
$.tags[*]
error
request-body-json-content
Request bodies must declare application/json content.
$.paths[*][post,put,patch].requestBody.content
error
response-success-required
Every operation must define at least one success response.
$.paths[*][get,post,put,patch,delete].responses
error
response-description-required
Every response must have a description.
$.paths[*][get,post,put,patch,delete].responses[*]
warn
schema-description-required
Component schemas must have descriptions.
$.components.schemas[*]
warn
schema-type-required
Schemas should define a type.
$.components.schemas[*]
error
get-no-request-body
GET operations must not have a request body.
$.paths[*].get
warn
no-empty-descriptions
Descriptions must not be empty.
$..description