Skip to content

Lenient parsing of SourceLocation's line and column in ResponseMapGraphQlResponse #849

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

Closed

Conversation

Stmated
Copy link
Contributor

@Stmated Stmated commented Nov 18, 2023

If the registered ObjectMapper has enabled DeserializationFeature.USE_BIG_INTEGER_FOR_INTS then the response parsing fails because it assumes int.

This checks the field type and converts appropriately, and falls back to -1 if it is not a number. This might not be the wanted way of handling the fallback. Maybe an exception should be thrown?

@pivotal-cla
Copy link

@Stmated Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-cla
Copy link

@Stmated Thank you for signing the Contributor License Agreement!

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Nov 18, 2023
@rstoyanchev rstoyanchev self-assigned this Nov 20, 2023
@rstoyanchev rstoyanchev added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Nov 20, 2023
@rstoyanchev rstoyanchev added this to the 1.2.4 milestone Nov 20, 2023
@rstoyanchev rstoyanchev changed the title Fix parsing of error response from ObjectMapper that produce BigInteger Lenient parsing of SourceLocation's line and column in ResponseMapGraphQlResponse Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants