Unsplash · API Governance Rules
Unsplash API Rules
Spectral linting rules defining API design standards and conventions for Unsplash.
8 Rules
error 2
warn 4
info 2
Rule Categories
unsplash
Rules
warn
unsplash-title-case-summary
Operation summaries must use Title Case
$.paths[*][*].summary
error
unsplash-operation-id
All operations must have an operationId
$.paths[*][*]
warn
unsplash-download-tracking
Photo objects must include download_location link for tracking compliance
$.components.schemas.Photo.properties.links.properties
info
unsplash-accept-version
Operations should document Accept-Version header usage
$.paths[*][get]
warn
unsplash-pagination-params
List endpoints should include pagination parameters
$.paths[/photos,/collections,/topics,/search/photos,/search/collections,/search/users][get].parameters[*].name
error
unsplash-write-auth
Write operations (PUT, POST, DELETE) must require OAuth authentication
$.paths[*][put,post,delete]
warn
unsplash-not-found
Resource endpoints should define 404 responses
$.paths[*/{id}*][get]
info
unsplash-content-filter
Photo-returning endpoints should support content_filter parameter
$.paths[/photos/random,/search/photos,/topics/{id_or_slug}/photos][get]