{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://autosalons.ru/feeds/schema/cities-v1.json","title":"Города каталога autosalons.ru","description":"Конверт фида и ответа API autosalons.ru. Версия 1 не меняется: поля могут добавляться, но не исчезают и не меняют смысл. Документация: https://autosalons.ru/dlya-ii/","type":"object","required":["schema","version","source","generated_at"],"properties":{"schema":{"type":"string","format":"uri","description":"Ссылка на эту схему"},"version":{"const":1},"source":{"type":"string","format":"uri"},"docs":{"type":"string","format":"uri","description":"Описание фидов и API"},"terms":{"type":"string","description":"Условия использования данных"},"generated_at":{"type":"string","format":"date-time","description":"Когда собран ответ"},"count":{"type":"integer","description":"Сколько записей в этом ответе"},"total":{"type":"integer","description":"Сколько записей всего по запросу"},"page":{"type":"integer","description":"Номер страницы фида, если записей больше, чем помещается в одну"},"pages":{"type":"integer"},"next":{"type":["string","null"],"format":"uri","description":"Следующая страница или null"},"items":{"type":"array","items":{"$ref":"#/$defs/item"}},"item":{"$ref":"#/$defs/item","description":"Одна запись в ответах вида /api/cars/{id}/"}},"$defs":{"item":{"type":"object","required":["slug","name","dealers"],"properties":{"slug":{"type":"string"},"name":{"type":"string"},"region":{"type":["string","null"],"description":"Регион"},"geo":{"type":["object","null"],"properties":{"lat":{"type":"number"},"lon":{"type":"number"}}},"dealers":{"type":"integer","description":"Салонов в каталоге"},"cars_in_stock":{"type":"integer"},"reviews_url":{"type":"string","format":"uri","description":"Салоны города с отзывами"},"cars_url":{"type":["string","null"],"format":"uri","description":"Машины в наличии в городе, если есть"},"dealers_feed":{"type":"string","format":"uri"},"cars_feed":{"type":["string","null"],"format":"uri","description":"Фид машин города, если есть"}}}}}