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

showWithReviews test case breaks if submittedDate is added #7

Open
richardcresswell opened this issue Apr 15, 2021 · 0 comments
Open

Comments

@richardcresswell
Copy link

If you change this line to

.reviews().submittedDate()

The ObjectMapper cannot deserialize the date.

Error deserializing data from '{"data":{"shows":[{"title":"mock title","reviews":[{"submittedDate":"2021-04-15T11:37:22.424887-04:00","username":"DGS User","starScore":5},{"submittedDate":"2021-04-15T11:37:22.424953-04:00","username":"DGS User 2","starScore":3}]}]}}' with JsonPath 'data.shows[*]' and target class java.util.List<com.example.demo.generated.types.Show>
DgsQueryExecutionDataExtractionException(ex=com.jayway.jsonpath.spi.mapper.MappingException: java.lang.IllegalArgumentException: Cannot construct instance of `java.time.OffsetDateTime` (no Creators, like default constructor, exist): no String-argument constructor/factory method to deserialize from String value ('2021-04-15T11:37:22.424887-04:00')
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

No branches or pull requests

1 participant