Open Food Facts · API Governance Rules
Open Food Facts — robotoff rules
Spectral linting rules defining API design standards and conventions for Open Food Facts.
6 Rules
error 3
warn 3
Published by Open Food Facts
Served by the provider at https://github.com/openfoodfacts/robotoff/blob/4019f07251fb12191c445c852009cd8135b848de/.spectral.yml; the copy below was fetched from there.
Rule Categories
no
operation
parameter
response
schema
server
Rules
warn
operation-summary-formatted
Operation summary should be properly formatted
$.paths[*][*]
warn
parameter-description
Parameters should have descriptions
$.paths[*][*].parameters[*]
error
response-success-status
Operations should have at least one success response (2xx)
$.paths[*][*].responses
warn
schema-properties-descriptions
Schema properties should have descriptions
$.components.schemas[*].properties[*]
error
no-empty-servers
Server array should not be empty
$.servers
error
server-url-format
Server URLs should be valid URLs
$.servers[*].url
Spectral Ruleset
Work with this as data
Every ruleset here is available over the APIs.io API and to AI agents over MCP.