Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

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