Align payload fields with data_collector PayloadSchema
- Rename 'photos' -> 'images' (data_collector expects images: list[str])
- Add 'price' field matching PayloadSchema price field
- Add 'contact_phone' (first phone string, not list)
- Add 'address' (combined city+district+street+building string)
- Add 'area', 'rooms', 'floor' per strict schema
- Keep extra fields (price_usd, city_name, etc.) because extra=allow
- Remove 'photos_count' in favor of checking len(images)

Fixes photo ingestion — previously data_collector rejected/ignored 'photos'
because PayloadSchema only knows 'images'.

Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 23367fc commit f85730b36400a7dcf7af15948149c2843609c5a3
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored 1 day ago
Showing 2 changed files
View
src/crawler.py
View
src/normalizer.py