Validate Google Hotel Center, Wego and trivago hotel feeds from CI
Описание и применение
CLI @metasearch/feed-validator проверяет данные отелей на соответствие контрактам Google Hotel Center, Wego и trivago, выявляя различия до интеграции и позволяя автоматизировать проверку в CI.
Задача
Hotel distribution feeds look simple until you need to send the same property data to multiple platforms.
Результат
Feeds are validated against platform‑specific contracts, gaps are identified early, and the process can be automated in CI, reducing integration friction.
Рабочий процесс
- Run validator with npx @metasearch/feed-validator validate hotels.csv --target google-hotel-center
- Run validator for other targets: wego or trivago
- Use compare command to see gaps across platforms: npx @metasearch/feed-validator compare hotels.csv --targets google-hotel-center,wego,trivago
- Integrate into CI by adding a job that runs the validator and fails on error
- Use --output json for structured output or --fail-on warning for stricter checks
- Validator supports CSV, TSV, JSON, NDJSON, XML from local file, URL or stdin
Доказательства
I wanted a simple way to catch these differences before a feed reaches a partner integration, so I built an open‑source CLI:
It currently supports published-contract validation for: Google Hotel Center, Wego Hotels, trivago
The validator currently supports: CSV, TSV, JSON, NDJSON, XML
- Дата записи: 2026-10-09T19:40:54.980Z