GoogleApi OpenAPI 3 YAML Specification
@wangela ya está trabajando en esto.
Desde el 9/9/2022.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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

- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 118
- Forks
- 94
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de googlemaps/openapi-specification
-
triage me type: feature request
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
googlemaps/openapi-specification#521 · 1 reacción ·
-
triage me type: feature request
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
googlemaps/openapi-specification#485 · 4 comentarios · 5 reacciones ·
-
triage me type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 55/100
googlemaps/openapi-specification#484 · 1 comentario ·
-
triage me type: bug
Dificultad 3/5 1-2 días Aptitud para principiantes 30/100
googlemaps/openapi-specification#483 · 1 comentario ·
-
[Place Details API response] geometry field - LatLngLiteral does not specify the geocode levelAbiertotriage me type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 38/100
googlemaps/openapi-specification#464 · 1 comentario ·