GoogleApi OpenAPI 3 YAML Specification
@wangela já está trabalhando nisso.
Desde 9/9/2022.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
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

- Linguagem predominante
- Sem dados de linguagem
- Estrelas
- 118
- Forks
- 94
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de googlemaps/openapi-specification
-
triage me type: feature request
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
googlemaps/openapi-specification#521 · 1 reação ·
-
triage me type: feature request
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
googlemaps/openapi-specification#485 · 4 comentários · 5 reações ·
-
triage me type: bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 55/100
googlemaps/openapi-specification#484 · 1 comentário ·
-
triage me type: bug
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 30/100
googlemaps/openapi-specification#483 · 1 comentário ·
-
[Place Details API response] geometry field - LatLngLiteral does not specify the geocode levelAbertatriage me type: bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 38/100
googlemaps/openapi-specification#464 · 1 comentário ·