Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show more informative error message on parsing error #108

Merged
merged 1 commit into from
Aug 15, 2023

Conversation

sh1nj1
Copy link
Contributor

@sh1nj1 sh1nj1 commented Apr 5, 2023

If the API documentation JSON file is incorrect, it only shows GSON's error message, which is quite difficult to understand at first.

Here is the old error message:

Caused by: com.google.gson.JsonSyntaxException:
Expected a com.google.gson.JsonObject but was com.google.gson.JsonPrimitive

If the API documentation JSON file is incorrect, it only shows GSON's
error message, which is quite difficult to understand at first.

Here is the old error message:

Caused by: com.google.gson.JsonSyntaxException:
Expected a com.google.gson.JsonObject but was com.google.gson.JsonPrimitive
@bnasslahsen bnasslahsen merged commit 1792fd7 into springdoc:master Aug 15, 2023
@bnasslahsen
Copy link
Contributor

Thank you @sh1nj1 for your contribution to the project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants