Rijksmuseum · API Governance Rules
Rijksmuseum API Rules
Spectral linting rules defining API design standards and conventions for Rijksmuseum.
15 Rules
error 6
warn 6
info 3
Rule Categories
rijksmuseum
Rules
warn
rijksmuseum-info-contact
Info object must include a contact email or URL.
$.info
warn
rijksmuseum-info-license
Info object must include a license referencing Rijksmuseum data policy.
$.info
error
rijksmuseum-server-must-be-prod
The production server must be www.rijksmuseum.nl/api.
$.servers[*].url
error
rijksmuseum-operation-must-have-id
Every operation must have an operationId.
$.paths[*][get,post,put,delete,patch]
error
rijksmuseum-operation-must-have-summary
Every operation must have a Title-Case summary.
$.paths[*][get,post,put,delete,patch]
warn
rijksmuseum-operation-must-have-description
Every operation must have a description.
$.paths[*][get,post,put,delete,patch]
warn
rijksmuseum-operation-must-have-tags
Every operation must be tagged.
$.paths[*][get,post,put,delete,patch]
warn
rijksmuseum-summary-title-case
Operation summaries must use Title Case.
$.paths[*][get,post,put,delete,patch].summary
error
rijksmuseum-culture-param
Every collection path MUST include a culture path parameter.
$.paths[?(@property =~ /^\\/\\{culture\\}/)]
error
rijksmuseum-apikey-required
All operations must enforce API key security.
$.paths[*][get,post,put,delete,patch]
info
rijksmuseum-microcks-extension
Operations SHOULD include x-microcks-operation for mockability.
$.paths[*][get,post,put,delete,patch]
warn
rijksmuseum-error-response
4xx error responses must reference the Error schema.
$.paths[*][get,post,put,delete,patch].responses[?(@property.match(/^4../))].content.*.schema
info
rijksmuseum-pagination-cap-described
Endpoints with p/ps pagination must document the 10,000 cap.
$.paths[*].get.description
info
rijksmuseum-component-schema-ref
Responses should reference component schemas instead of inlining.
$.paths[*][get,post,put,delete,patch].responses[*].content.*.schema
error
rijksmuseum-localized-paths
Collection/userset paths must be locale-prefixed with {culture}.
$.paths