overblog / GraphQLBundle

This bundle provides tools to build a complete GraphQL API server in your Symfony App.
MIT License
788 stars 222 forks source link

Add the concept of "validation_mode" #1185

Open joesaunderson opened 6 months ago

joesaunderson commented 6 months ago
Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Documented? yes
Fixed tickets N/A
License MIT

Adds the concept of validation_mode at the default config level.

Vincz commented 6 months ago

Excellent @joesaunderson! You are on the right track! Do you think it would be possible to also be able to manage the validation mode on the object itself (if it's too complicated, we'll try to implement in a future release). If you can also add the test (with the same object applying both modes and validate the output).

TomasLudvik commented 2 months ago

Hello @joesaunderson and @Vincz , is it possible to move his PR forward as it solves problem introduced in https://github.com/overblog/GraphQLBundle/pull/1184 ? We are locked on version 1.3.2 and are waiting for this to be fixed. Thank you.

joesaunderson commented 2 months ago

I won't have the time I'm afraid, but someone can take this base and make the changes @Vincz suggests.