GoogleApi OpenAPI 3 YAML Specification

オープン
#375 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

@wangela がすでに取り組んでいます。

2022年9月9日 から。

評価

この issue はまだ評価されていません。

説明

triage me type: bug
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
  1. Request to Google API Autocomplete
  2. Google Autocomple API does not always return a secondary_text or main_text_matched_substrings in the JSON response
  3. 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

Screenshot 2022-09-09 113918

主要言語
言語のデータがありません
スター
118
フォーク
94
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

googlemaps/openapi-specification のほかの issue

googlemaps/openapi-specification の issue をすべて見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。