feed-lint
v0.1.3Lint Google Merchant and Ceneo product feeds: missing fields, prices, GTINs, duplicate ids, links.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
lint_feed Lint a product feed
Check a Google Merchant (RSS or Atom) or Ceneo XML product feed and list problems grouped by rule, with counts, line numbers and product ids: missing fields, wrong prices, invalid GTINs, duplicate ids, bad categories and more. Pass a file path, an http(s) URL or the XML itself. With none of them, lints the feeds from feed-lint.config.json. Follow up with explain_rule for a fix.
| Parameter | Type | Description |
|---|---|---|
check_urls | boolean | Also request product links and images (up to 200 unique URLs). Slow; use when asked to check links. |
ignore | array | Rules to skip, e.g. ["google/identifiers"]. |
path | string | Feed file relative to the working directory, e.g. "public/feeds/google.xml". Use one of path, url or xml. |
url | string | Feed URL, e.g. "https://shop.example/feed/google.xml". |
xml | string | Feed XML as text, for small feeds or a single product. |
explain_rule Explain a feed rule
Explain one rule reported by lint_feed: what it checks, how severe it is, how to fix it and where the specification says so.
| Parameter | Type | Description |
|---|---|---|
rule * | string | Rule id from lint_feed, e.g. "google/gtin-checksum" or "ceneo/avail-value". |