TechCrunch · API Governance Rules
TechCrunch API Rules
Spectral linting rules defining API design standards and conventions for TechCrunch.
12 Rules
error 5
warn 5
info 2
Rule Categories
wp
Rules
error
wp-operationid-required
All operations must have an operationId
$.paths.*.*
warn
wp-operationid-camel-case
Operation IDs must use camelCase (WordPress REST API convention)
$.paths.*.*.operationId
warn
wp-get-operations-support-pagination
List endpoints should support page and per_page query parameters
$.paths[?([email protected](/\/\{id\}$/))].get
warn
wp-per-page-max-100
per_page parameter should enforce a maximum of 100
$.paths.*.get.parameters[?(@.name == 'per_page')].schema
error
wp-id-path-param-integer
The {id} path parameter must be an integer
$.paths[?(@property =~ /\{id\}/)].*.parameters[?(@.name == 'id')].schema
error
wp-response-200-required
All GET operations must have a 200 response defined
$.paths.*.get
warn
wp-error-schema-on-4xx
4xx responses should use WPError schema
$.paths.*.*.responses[?(@property >= '400' && @property < '500')]
error
wp-tags-on-operations
All operations must be tagged for grouping
$.paths.*.*
warn
wp-description-on-operations
All operations must have a description
$.paths.*.*
info
wp-no-auth-required
TechCrunch WordPress REST API is read-only public - no auth required
$.paths.*.get
error
wp-search-requires-search-param
The /search endpoint must have a required search parameter
$.paths['/search'].get.parameters[?(@.name == 'search')]
info
wp-rendered-content-schema
Post/page content should use RenderedValue schema pattern
$.components.schemas.Post.properties[?(@property =~ /^(title|content|excerpt|guid)$/)]