GoogleApi OpenAPI 3 YAML Specification
@wangela ci sta già lavorando.
Dal 9/9/2022.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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

- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 118
- Fork
- 94
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di googlemaps/openapi-specification
-
triage me type: feature request
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
googlemaps/openapi-specification#521 · 1 reazione ·
-
triage me type: feature request
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
googlemaps/openapi-specification#485 · 4 commenti · 5 reazioni ·
-
triage me type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 55/100
googlemaps/openapi-specification#484 · 1 commento ·
-
triage me type: bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 30/100
googlemaps/openapi-specification#483 · 1 commento ·
-
[Place Details API response] geometry field - LatLngLiteral does not specify the geocode levelApertatriage me type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 38/100
googlemaps/openapi-specification#464 · 1 commento ·