Sigma-Aldrich · API Governance Rules
Sigma-Aldrich API Rules
Spectral linting rules defining API design standards and conventions for Sigma-Aldrich.
8 Rules
error 4
warn 4
Rule Categories
sigma
Rules
error
sigma-aldrich-api-key-auth
Sigma-Aldrich API must use API key authentication via x-api-key header
$.components.securitySchemes[?(@.type == 'apiKey')]
warn
sigma-aldrich-search-requires-query
Product search endpoints must require a search query parameter
$.paths[?(@property =~ /search/)].get.parameters[?(@.in == 'query')]
warn
sigma-aldrich-cas-number-format
CAS number path parameters should validate the CAS format pattern
$.components.parameters[?(@.name == 'casNumber')]
error
sigma-aldrich-structure-search-required-fields
Structure search request must include structure and searchType fields
$.components.schemas.StructureSearchRequest
error
sigma-aldrich-operation-summary-required
All operations must have a summary
$.paths[*][*]
error
sigma-aldrich-operation-id-required
All operations must define an operationId
$.paths[*][get,post,put,delete,patch]
warn
sigma-aldrich-stock-level-enum
Stock level field should use enumerated values
$.components.schemas[*].properties.stockLevel
warn
sigma-aldrich-search-results-pagination
Search result schemas should include total, page, and pageSize
$.components.schemas.ProductSearchResults.properties