Netflix / dgs-framework

GraphQL for Java with Spring Boot made easy.
https://netflix.github.io/dgs
Apache License 2.0
3.03k stars 286 forks source link

Fix classification type in GraphQLErrorExtensions #1802

Closed kilink closed 5 months ago

kilink commented 5 months ago

GraphQLErrorExtensions' classification property had a type of String, but in practice an ErrorClassification may be mapped to any JSON serializable type; this is actually the case in practice when using libraries such as graphql-java-extended-validation, which may return a Map for its ErrorClassification. Switch the type to Any, so that such responses can be deserialized, and add a simple test case.

Fixes #1146