RentCast · API Governance Rules
RentCast API Rules
Spectral linting rules defining API design standards and conventions for RentCast.
7 Rules
error 2
warn 3
Rule Categories
rentcast
Rules
error
rentcast-api-key-auth
RentCast API uses X-Api-Key header authentication
$.components.securitySchemes
warn
rentcast-get-only-operations
RentCast API operations are read-only (GET)
$.paths[*]
hint
rentcast-address-or-coordinates
Property lookup endpoints accept address or lat/lon
$.paths[*].get.parameters[*].name
warn
rentcast-pagination-params
List endpoints should support pagination
$.paths['/properties'].get.parameters[*].name
hint
rentcast-property-type-enum
propertyType parameter should use standard enum values
$.paths[*].get.parameters[?(@.name == 'propertyType')].schema.enum[*]
error
rentcast-response-200-defined
All operations must define a 200 response
$.paths[*][get,post,put,patch,delete].responses
warn
rentcast-summaries-title-case
Operation summaries must use Title Case
$.paths[*][get,post,put,patch,delete].summary