Fixer · API Governance Rules
Fixer API Rules
Spectral linting rules defining API design standards and conventions for Fixer.
12 Rules
error 4
warn 8
Rule Categories
fixer
Rules
error
fixer-operation-id-required
Every operation must have a non-empty operationId.
$.paths[*][get,post,put,patch,delete]
warn
fixer-operation-id-camel-case
operationId values must be lowerCamelCase.
$.paths[*][get,post,put,patch,delete].operationId
error
fixer-operation-summary-required
Every operation must have a summary.
$.paths[*][get,post,put,patch,delete]
warn
fixer-operation-summary-title-case
Operation summaries must use Title Case.
$.paths[*][get,post,put,patch,delete].summary
warn
fixer-operation-description-required
Every operation must have a description.
$.paths[*][get,post,put,patch,delete]
warn
fixer-operation-tags-required
Every operation must declare at least one tag.
$.paths[*][get,post,put,patch,delete]
warn
fixer-currency-code-example-format
Currency code examples (base/symbols/from/to) must be uppercase ISO 4217 codes.
$.paths[*].get.parameters[?(@.name=='base' || @.name=='from' || @.name=='to')].schema.example
warn
fixer-date-parameter-format
Date-valued parameters must declare schema.format = 'date'.
$.paths[*].get.parameters[?(@.name=='date' || @.name=='start_date' || @.name=='end_date')].schema
warn
fixer-response-success-envelope
Response schemas must include a `success` boolean property.
$.components.schemas[?(@property!='ErrorResponse' && @property!='FluctuationEntry')].properties
error
fixer-error-envelope
ErrorResponse schema must include success=false and a nested error object with code/type/info.
$.components.schemas.ErrorResponse.properties
error
fixer-apikey-security-scheme
ApiKeyAuth security scheme must be defined as a header named 'apikey'.
$.components.securitySchemes.ApiKeyAuth
warn
fixer-server-apilayer-required
At least one server must point at api.apilayer.com/fixer.
$.servers[*].url