{"openapi":"3.1.0","info":{"title":"Treeepl API","version":"0.1.0"},"paths":{"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Health Health Get"}}}}}}},"/countries":{"get":{"summary":"All Countries","description":"Полный список — для выбора гражданства.","operationId":"all_countries_countries_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/CountryOut"},"type":"array","title":"Response All Countries Countries Get"}}}}}}},"/home":{"get":{"summary":"Home","operationId":"home_home_get","parameters":[{"name":"citizenship","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Citizenship"}},{"name":"lat","in":"query","required":false,"schema":{"anyOf":[{"type":"number","maximum":90,"minimum":-90},{"type":"null"}],"title":"Lat"}},{"name":"lon","in":"query","required":false,"schema":{"anyOf":[{"type":"number","maximum":180,"minimum":-180},{"type":"null"}],"title":"Lon"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HomeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/countries/{iso2}":{"get":{"summary":"Country Detail","operationId":"country_detail_countries__iso2__get","parameters":[{"name":"iso2","in":"path","required":true,"schema":{"type":"string","title":"Iso2"}},{"name":"citizenship","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Citizenship"}},{"name":"viewer","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer"}},{"name":"currency","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"}},{"name":"lat","in":"query","required":false,"schema":{"anyOf":[{"type":"number","maximum":90,"minimum":-90},{"type":"null"}],"title":"Lat"}},{"name":"lon","in":"query","required":false,"schema":{"anyOf":[{"type":"number","maximum":180,"minimum":-180},{"type":"null"}],"title":"Lon"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountryDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cities/{city_id}":{"get":{"summary":"City Detail","description":"Экран города. `viewer` — ключ смотрящего: по нему подбираются друзья,\nотметившие этот город, и собственная отметка. Токен не нужен — данные публичные.","operationId":"city_detail_cities__city_id__get","parameters":[{"name":"city_id","in":"path","required":true,"schema":{"type":"string","title":"City Id"}},{"name":"viewer","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CityDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/search":{"get":{"summary":"Search","operationId":"search_search_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"citizenship","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Citizenship"}},{"name":"visa_free","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Visa Free"}},{"name":"long_stay","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Long Stay"}},{"name":"region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"}},{"name":"max_flight_hours","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":48,"minimum":1},{"type":"null"}],"title":"Max Flight Hours"}},{"name":"income","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Income"}},{"name":"life","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Life"}},{"name":"crime","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Crime"}},{"name":"lat","in":"query","required":false,"schema":{"anyOf":[{"type":"number","maximum":90,"minimum":-90},{"type":"null"}],"title":"Lat"}},{"name":"lon","in":"query","required":false,"schema":{"anyOf":[{"type":"number","maximum":180,"minimum":-180},{"type":"null"}],"title":"Lon"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CountryItemOut"},"title":"Response Search Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/search/cities":{"get":{"summary":"Search Cities","description":"Поиск города по названию — вторая половина общего поиска.\n\nФильтров здесь нет намеренно: визы, регион и время перелёта — свойства\nстраны, к городу они не применяются, и в интерфейсе города показываются\nтолько по текстовому запросу.\n\nСовпадения с начала названия идут первыми: по «par» нужен Париж, а не\nВальпараисо. Дальше — по населению, оно же грубая мера известности.","operationId":"search_cities_search_cities_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CityOut"},"title":"Response Search Cities Search Cities Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quiz":{"post":{"summary":"Quiz","description":"Подбор стран по ответам квиза — экран «Found: N countries».","operationId":"quiz_quiz_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuizIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/CountryItemOut"},"type":"array","title":"Response Quiz Quiz Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/quiz/criteria":{"get":{"summary":"Quiz Criteria","description":"Критерии квиза, по которым в базе действительно есть данные.\n\nВопрос без данных обнуляет выдачу: индекс преступности требует ключа Numbeo,\nбез него колонка пустая, и любой ответ на «Crime level» давал «Found: 0».\nКлиент прячет такие вопросы, а не показывает заведомо пустой подбор.\n\n«Питомцы» не отдаём по другой причине: таблица `restrictions` пуста, и подбор\nпо ним ничего не фильтрует — вопрос выглядел бы работающим, ничего не делая.\nПоявятся данные — критерий вернётся сюда сам.","operationId":"quiz_criteria_quiz_criteria_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array","title":"Response Quiz Criteria Quiz Criteria Get"}}}}}}},"/regions":{"get":{"summary":"Regions","operationId":"regions_regions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array","title":"Response Regions Regions Get"}}}}}}},"/auth/apple":{"post":{"summary":"Sign In With Apple","description":"Вход по Apple ID. Клиент генерирует account-token сам и хранит его в Keychain.\n\nЕсли Apple подтвердил личность (`identity_token`), привязка токена к ключу\nпереписывается: иначе после переустановки или смены телефона Keychain пустой,\nновый секрет не сходится со старым, и человек навсегда терял свой аккаунт —\nровно это и происходило.","operationId":"sign_in_with_apple_auth_apple_post","parameters":[{"name":"x-account-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Account-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppleSignInIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/profile/{key}":{"put":{"summary":"Update Profile","operationId":"update_profile_profile__key__put","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"x-account-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Account-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Profile","description":"Публичный профиль — открывается по ссылке, токен не нужен.","operationId":"get_profile_profile__key__get","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/places/{key}":{"post":{"summary":"Set Place","operationId":"set_place_places__key__post","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"x-account-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Account-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaceIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CityOut"},"title":"Response Set Place Places  Key  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Places","description":"Список отмеченных городов — публичный, как и профиль.","operationId":"list_places_places__key__get","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","default":"visited","title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CityOut"},"title":"Response List Places Places  Key  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/places/{key}/{city_id}":{"delete":{"summary":"Delete Place","operationId":"delete_place_places__key___city_id__delete","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"city_id","in":"path","required":true,"schema":{"type":"string","title":"City Id"}},{"name":"x-account-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Account-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Place Places  Key   City Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/{username}":{"get":{"summary":"User By Username","operationId":"user_by_username_users__username__get","parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string","title":"Username"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/friends/{key}":{"post":{"summary":"Add Friend","operationId":"add_friend_friends__key__post","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"x-account-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Account-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FriendIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProfileOut"},"title":"Response Add Friend Friends  Key  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Friends","operationId":"list_friends_friends__key__get","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProfileOut"},"title":"Response List Friends Friends  Key  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/avatars/{key}":{"put":{"summary":"Upload Avatar","description":"Загрузка аватара: тело запроса — сырые байты JPEG.","operationId":"upload_avatar_avatars__key__put","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"x-account-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Account-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Avatar","operationId":"get_avatar_avatars__key__get","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Avatar","operationId":"delete_avatar_avatars__key__delete","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"x-account-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Account-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/{key}":{"delete":{"summary":"Delete User","description":"Полное удаление аккаунта — требование App Store Review 5.1.1(v).\n\nСтираем всё, что привязано к ключу: профиль, токен, отметки мест, обе стороны\nдружбы и файл аватара. Мягкого удаления нет намеренно: пользователь просит\nубрать данные, а не спрятать их. Apple-sub уходит вместе со строкой users,\nпоэтому повторный вход тем же Apple ID заведёт чистый аккаунт.","operationId":"delete_user_users__key__delete","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"x-account-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Account-Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AppleSignInIn":{"properties":{"apple_sub":{"type":"string","title":"Apple Sub"},"first_name":{"type":"string","title":"First Name","default":""},"last_name":{"type":"string","title":"Last Name","default":""},"citizenship":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Citizenship"},"identity_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Identity Token"}},"type":"object","required":["apple_sub"],"title":"AppleSignInIn"},"CityDetailOut":{"properties":{"city":{"$ref":"#/components/schemas/CityOut"},"country":{"$ref":"#/components/schemas/CountryOut"},"weather":{"anyOf":[{"$ref":"#/components/schemas/WeatherOut"},{"type":"null"}]},"other_cities":{"items":{"$ref":"#/components/schemas/CityOut"},"type":"array","title":"Other Cities"},"friends":{"items":{"$ref":"#/components/schemas/FriendOut"},"type":"array","title":"Friends","default":[]},"mark":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mark"}},"type":"object","required":["city","country","other_cities"],"title":"CityDetailOut"},"CityOut":{"properties":{"id":{"type":"string","title":"Id"},"country_iso2":{"type":"string","title":"Country Iso2"},"name":{"type":"string","title":"Name"},"subtitle":{"type":"string","title":"Subtitle"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Longitude"},"rating":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rating"}},"type":"object","required":["id","country_iso2","name","subtitle"],"title":"CityOut"},"CountryDetailOut":{"properties":{"country":{"$ref":"#/components/schemas/CountryOut"},"visa_status":{"type":"string","title":"Visa Status"},"visa_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Visa Days"},"flight":{"anyOf":[{"$ref":"#/components/schemas/FlightOut"},{"type":"null"}]},"requirements":{"items":{"$ref":"#/components/schemas/RequirementOut"},"type":"array","title":"Requirements"},"good_to_know":{"anyOf":[{"$ref":"#/components/schemas/GoodToKnowOut"},{"type":"null"}]},"cities":{"items":{"$ref":"#/components/schemas/CityOut"},"type":"array","title":"Cities"},"service_apps":{"items":{"$ref":"#/components/schemas/ServiceAppOut"},"type":"array","title":"Service Apps"},"emergency":{"anyOf":[{"$ref":"#/components/schemas/EmergencyOut"},{"type":"null"}]},"nearby":{"items":{"$ref":"#/components/schemas/CountryItemOut"},"type":"array","title":"Nearby"},"friends":{"items":{"$ref":"#/components/schemas/FriendOut"},"type":"array","title":"Friends","default":[]}},"type":"object","required":["country","visa_status","requirements","cities","service_apps","nearby"],"title":"CountryDetailOut"},"CountryItemOut":{"properties":{"country":{"$ref":"#/components/schemas/CountryOut"},"visa_status":{"type":"string","title":"Visa Status"},"visa_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Visa Days"},"flight":{"anyOf":[{"$ref":"#/components/schemas/FlightOut"},{"type":"null"}]}},"type":"object","required":["country","visa_status"],"title":"CountryItemOut"},"CountryOut":{"properties":{"iso2":{"type":"string","title":"Iso2"},"name":{"type":"string","title":"Name"},"region":{"type":"string","title":"Region"},"latitude":{"type":"number","title":"Latitude"},"longitude":{"type":"number","title":"Longitude"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"}},"type":"object","required":["iso2","name","region","latitude","longitude"],"title":"CountryOut"},"EmergencyOut":{"properties":{"police":{"items":{"type":"string"},"type":"array","title":"Police"},"ambulance":{"items":{"type":"string"},"type":"array","title":"Ambulance"},"fire":{"items":{"type":"string"},"type":"array","title":"Fire"},"dispatch":{"items":{"type":"string"},"type":"array","title":"Dispatch"}},"type":"object","required":["police","ambulance","fire","dispatch"],"title":"EmergencyOut"},"FlightOut":{"properties":{"minutes":{"type":"integer","title":"Minutes"},"price_usd":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Price Usd"}},"type":"object","required":["minutes"],"title":"FlightOut"},"FriendIn":{"properties":{"friend_key":{"type":"string","title":"Friend Key"}},"type":"object","required":["friend_key"],"title":"FriendIn"},"FriendOut":{"properties":{"key":{"type":"string","title":"Key"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"display_name":{"type":"string","title":"Display Name"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"rating":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rating"}},"type":"object","required":["key","display_name"],"title":"FriendOut"},"GoodToKnowOut":{"properties":{"currency_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency Code"},"rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rate"},"rate_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rate Currency"},"languages":{"items":{"type":"string"},"type":"array","title":"Languages","default":[]},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"voltage":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Voltage"},"frequency":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Frequency"},"plugs":{"items":{"type":"string"},"type":"array","title":"Plugs","default":[]},"driving_side":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Driving Side"},"calling_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Calling Code"}},"type":"object","title":"GoodToKnowOut","description":"Бытовая справка по стране: валюта, время, розетки, движение, код связи."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HomeOut":{"properties":{"visa_free":{"items":{"$ref":"#/components/schemas/CountryItemOut"},"type":"array","title":"Visa Free"},"popular":{"items":{"$ref":"#/components/schemas/CountryItemOut"},"type":"array","title":"Popular"},"nearby":{"items":{"$ref":"#/components/schemas/CountryItemOut"},"type":"array","title":"Nearby"},"hero_video_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hero Video Url"}},"type":"object","required":["visa_free","popular","nearby"],"title":"HomeOut"},"PlaceIn":{"properties":{"city_id":{"type":"string","title":"City Id"},"kind":{"type":"string","title":"Kind"},"rating":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rating"}},"type":"object","required":["city_id","kind"],"title":"PlaceIn"},"ProfileIn":{"properties":{"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"citizenship":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Citizenship"}},"type":"object","title":"ProfileIn"},"ProfileOut":{"properties":{"key":{"type":"string","title":"Key"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"citizenship":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Citizenship"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"places_count":{"type":"integer","title":"Places Count","default":0},"countries_count":{"type":"integer","title":"Countries Count","default":0},"friends_count":{"type":"integer","title":"Friends Count","default":0}},"type":"object","required":["key","first_name","last_name"],"title":"ProfileOut"},"QuizIn":{"properties":{"citizenship":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Citizenship"},"visa_ok":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Visa Ok"},"pets":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Pets"},"long_stay":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Long Stay"},"cheap_flight":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Cheap Flight"},"income":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Income"},"life":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Life"},"crime":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Crime"},"lat":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lat"},"lon":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lon"}},"type":"object","title":"QuizIn","description":"Ответы квиза. Пропущенные критерии («Don't care») просто не приходят."},"RequirementOut":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"value":{"type":"string","title":"Value"},"tone":{"type":"string","title":"Tone"}},"type":"object","required":["id","title","value","tone"],"title":"RequirementOut"},"ServiceAppOut":{"properties":{"id":{"type":"string","title":"Id"},"category":{"type":"string","title":"Category"},"name":{"type":"string","title":"Name"},"icon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon Url"},"app_store_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"App Store Url"},"deep_link_scheme":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deep Link Scheme"},"partner_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Partner Url"}},"type":"object","required":["id","category","name"],"title":"ServiceAppOut"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WeatherOut":{"properties":{"temperature_c":{"type":"number","title":"Temperature C"},"code":{"type":"integer","title":"Code"}},"type":"object","required":["temperature_c","code"],"title":"WeatherOut"}}}}