You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all thank you for providing this plugin. It saved us a lot of time when using spring-boot, and it's really great to have the directives in the graphQL model since it's really easy to document the queries this way.
To setup this plugin with spring-boot, we used the latest spring-graphql-kickstart, version 7.1.0 and this library version 15.0.1. To create and autowire the SchemaDirectiveWiring, I used the following
and in this case, the validation fails to execute.
I debugged a little, and I found out that the class of this repository graphql.validation.rules.ValidationRules does not look for rules in nested arguments, which seems to cause this problem, so the validation seems to be completely skipped. Therefore, since PagingAndSorting does not have any validations, the input object is not validated.
Thank you for your help!
The text was updated successfully, but these errors were encountered:
Hello!
First of all thank you for providing this plugin. It saved us a lot of time when using spring-boot, and it's really great to have the directives in the graphQL model since it's really easy to document the queries this way.
To setup this plugin with spring-boot, we used the latest
spring-graphql-kickstart
, version 7.1.0 and this library version15.0.1
. To create and autowire theSchemaDirectiveWiring
, I used the followingwhich seems to be working fine in some cases.
I have a query that looks in my application
and I want to validate the
paging
parameter with the following.In the case I pointed out, I have no issue with the plugin, and the validation works as expected.
However, I have another endpoint that looks like this
and in this case, the validation fails to execute.
I debugged a little, and I found out that the class of this repository
graphql.validation.rules.ValidationRules
does not look for rules in nested arguments, which seems to cause this problem, so the validation seems to be completely skipped. Therefore, sincePagingAndSorting
does not have any validations, the input object is not validated.Thank you for your help!
The text was updated successfully, but these errors were encountered: