GoogleApi OpenAPI 3 YAML Specification
@wangela đang làm issue này rồi.
Từ ngày 9/9/2022.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Issue
When making a request to the Google Autocomplete API A 500 internal error is being thrown by the when the JSON object is being deserialized. The following properties are required in the PlaceAutocompleteStructuredFormat object:
- secondary_text
- main_text_matched_substrings
However Google Autocomple API does not always return these properties in the json model, which is causing the 500 internal error.
Environment details
- OpenApi version: 1.17.17
- PlaceAutocompleteStructuredFormat
Language and framework
- Dotnet c#
Steps to reproduce
- Request to Google API Autocomplete
- Google Autocomple API does not always return a secondary_text or main_text_matched_substrings in the JSON response
- When the JSON response is being deserialized a 500 status code error is being thrown
Code example
try
{
return JsonConvert.DeserializeObject(response.Content, type, _serializerSettings);
}
catch (Exception e)
{
throw new ApiException(500, e.Message);
}
}
Stack trace

- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 118
- Fork
- 94
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của googlemaps/openapi-specification
-
triage me type: feature request
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
googlemaps/openapi-specification#521 · 1 reaction ·
-
triage me type: feature request
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
googlemaps/openapi-specification#485 · 4 bình luận · 5 reaction ·
-
triage me type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 55/100
googlemaps/openapi-specification#484 · 1 bình luận ·
-
triage me type: bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
googlemaps/openapi-specification#483 · 1 bình luận ·
-
[Place Details API response] geometry field - LatLngLiteral does not specify the geocode levelĐang mởtriage me type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 38/100
googlemaps/openapi-specification#464 · 1 bình luận ·