socure · API Governance Rules
socure API Rules
Spectral linting rules defining API design standards and conventions for socure.
7 Rules
error 3
warn 3
info 1
Rule Categories
socure
Rules
error
socure-info-contact-required
Every Socure OpenAPI spec must declare info.contact pointing to developer.socure.com.
$.info
warn
socure-server-host
Production server must use api.socure.com or api.socure.us (GovCloud).
$.servers[*].url
error
socure-security-apikey
All Socure operations must require the SocureToken apiKey security scheme.
$.security[*]
warn
socure-title-case-summaries
All operation summaries must use Title Case.
$.paths[*][*].summary
error
socure-operation-id-required
Every operation must declare an operationId.
$.paths[*][*]
warn
socure-tags-required
Every operation must be tagged.
$.paths[*][*]
info
socure-reference-id-property
Successful response bodies should include a referenceId property where applicable.
$.paths[*].post.responses['200'].content['application/json'].schema.properties