GoogleApi OpenAPI 3 YAML Specification
@wangela がすでに取り組んでいます。
2022年9月9日 から。
評価
この issue はまだ評価されていません。
説明
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

- 主要言語
- 言語のデータがありません
- スター
- 118
- フォーク
- 94
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
googlemaps/openapi-specification のほかの issue
-
triage me type: feature request
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
googlemaps/openapi-specification#521 · リアクション 1 件 ·
-
triage me type: feature request
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
googlemaps/openapi-specification#485 · コメント 4 件 · リアクション 5 件 ·
-
triage me type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
googlemaps/openapi-specification#484 · コメント 1 件 ·
-
triage me type: bug
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
googlemaps/openapi-specification#483 · コメント 1 件 ·
-
triage me type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 38/100
googlemaps/openapi-specification#464 · コメント 1 件 ·