Skip to content

feature/validation #536

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

Merged
merged 103 commits into from
Sep 29, 2019
Merged
Show file tree
Hide file tree
Changes from 89 commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
44c237c
test
murtukov May 27, 2019
10ac762
Merge remote-tracking branch 'upstream/master'
Jul 21, 2019
0f30500
Merge feature/validation from 0.12 into 0.13
Jul 21, 2019
e69197e
* Fix type-hint in expression functions
Jul 22, 2019
6fe7a98
Access ValidatorFactory from $globalVariable
Jul 22, 2019
7410b99
* Update unit test for expression functions
Jul 22, 2019
280b2fa
* Add documentation (draft)
Jul 22, 2019
c10311c
Add documentation assets
Jul 22, 2019
7ad194f
Update documentation:
Jul 22, 2019
75c9109
Update documentation
Jul 22, 2019
0ee4e86
* Update documentation
Jul 22, 2019
411411a
Update documentation
Jul 22, 2019
3d4a06f
Update documentation
Jul 22, 2019
5cda24a
Update documentation
Jul 22, 2019
6fe33e8
Update documentation
Jul 22, 2019
d36de63
Update documentation
Jul 22, 2019
8172afc
Update ArgumentsValidator.php
Jul 22, 2019
ce02bed
Create dummy evaluator closures for non-documented functions
Jul 23, 2019
d9a71fa
Merge branch 'master' into feature/validation_v.0.13
murtukov Jul 23, 2019
f2977d5
- Fix field level validation issue
murtukov Jul 29, 2019
b01ab58
Merge remote-tracking branch 'origin/feature/validation_v.0.13' into …
murtukov Jul 29, 2019
d93b2a9
- Change validation from property level to class level
murtukov Jul 29, 2019
a02372c
* Rename ArgumentsValidator into InputValidator
murtukov Aug 13, 2019
5c34380
Merge branch 'master' into feature/validation_v.0.13
murtukov Aug 21, 2019
6ea80d6
First functional test for InputValidator
murtukov Aug 31, 2019
ee230be
Merge remote-tracking branch 'origin/feature/validation_v.0.13' into …
murtukov Aug 31, 2019
4d98dc6
* Finish functional tests for InputValidator
murtukov Sep 1, 2019
8494d10
* Update functional tests
murtukov Sep 1, 2019
a73e102
fix PHP CS
murtukov Sep 2, 2019
65272c2
Remove unnecessary class annotations
murtukov Sep 2, 2019
7995c88
* Replace assert import statements to constants
murtukov Sep 3, 2019
6fb9c1f
* Finish all unit and functional tests
murtukov Sep 6, 2019
c799246
PHP cs-fix
murtukov Sep 6, 2019
4c1b087
Static analysis fix
murtukov Sep 6, 2019
ac0e688
Fix expression functions tests
murtukov Sep 6, 2019
e1f7ab9
Merge branch 'master' into feature/validation_v.0.13
murtukov Sep 6, 2019
c11f15e
Merge remote-tracking branch 'upstream/master'
murtukov Sep 6, 2019
2a59617
Merge feature/validation from 0.12 into 0.13
Jul 21, 2019
0d80fe6
* Fix type-hint in expression functions
Jul 22, 2019
7d3e50a
Access ValidatorFactory from $globalVariable
Jul 22, 2019
2a5afe2
* Update unit test for expression functions
Jul 22, 2019
3b16e99
* Add documentation (draft)
Jul 22, 2019
7260879
Add documentation assets
Jul 22, 2019
3bf2aa1
Update documentation:
Jul 22, 2019
bb5491e
Update documentation
Jul 22, 2019
97f952f
* Update documentation
Jul 22, 2019
08b3571
Update documentation
Jul 22, 2019
da4e353
Update documentation
Jul 22, 2019
d352582
Update documentation
Jul 22, 2019
4d09153
Update documentation
Jul 22, 2019
640267d
Update documentation
Jul 22, 2019
c473236
Update ArgumentsValidator.php
Jul 22, 2019
b62bc4d
Create dummy evaluator closures for non-documented functions
Jul 23, 2019
2fba5c4
- Fix field level validation issue
murtukov Jul 29, 2019
24c6fe9
- Change validation from property level to class level
murtukov Jul 29, 2019
241b4e2
* Rename ArgumentsValidator into InputValidator
murtukov Aug 13, 2019
de213de
First functional test for InputValidator
murtukov Aug 31, 2019
4a1ff28
* Finish functional tests for InputValidator
murtukov Sep 1, 2019
7fd3a3d
* Update functional tests
murtukov Sep 1, 2019
d8bda42
fix PHP CS
murtukov Sep 2, 2019
ab1ec1f
Remove unnecessary class annotations
murtukov Sep 2, 2019
1d6770a
* Replace assert import statements to constants
murtukov Sep 3, 2019
5ad9292
* Finish all unit and functional tests
murtukov Sep 6, 2019
6bba1ed
PHP cs-fix
murtukov Sep 6, 2019
6594559
Static analysis fix
murtukov Sep 6, 2019
6c2a61b
Fix expression functions tests
murtukov Sep 6, 2019
e5a5623
Fix typo on access control docs
brunonm Aug 22, 2019
276a8a4
Removed deprecated message
mcg-web Aug 25, 2019
4d8d1b6
Add inheritance support to relay processor + preverse order
spyl94 Aug 21, 2019
1906453
Remove BC
mcg-web Aug 25, 2019
225ad54
Convert header to string to fix test for Symfony 4.3.4
mcg-web Aug 31, 2019
2f6f198
fixed example of Enum. Added public $value.
mzk Aug 26, 2019
fd2af8b
Merge remote-tracking branch 'origin/feature/validation_v.0.13' into …
murtukov Sep 6, 2019
e493431
Fix issue in Generator
murtukov Sep 6, 2019
601a423
PHP cs-fix
murtukov Sep 6, 2019
06281ae
Update lib/generator/src/Generator/AbstractClassGenerator.php
murtukov Sep 11, 2019
50d1f7f
Fix composer dependencies
murtukov Sep 11, 2019
eaa14bf
Update src/Exception/EvaluatorIsNotAllowedException.php
murtukov Sep 11, 2019
5fdab4c
Update src/ExpressionLanguage/ExpressionFunction/Call.php
murtukov Sep 11, 2019
fd2c6e0
Update src/Exception/EvaluatorIsNotAllowedException.php
murtukov Sep 11, 2019
f195c76
Replace callbacks by Exception objects
murtukov Sep 11, 2019
b5e5df5
Update src/ExpressionLanguage/ExpressionFunction/GraphQL/Relay/Global…
murtukov Sep 11, 2019
524a41f
Remove unnecessary $name arg from expression function constructors
murtukov Sep 11, 2019
0a99bc2
Merge remote-tracking branch 'origin/feature/validation_v.0.13' into …
murtukov Sep 11, 2019
4e01672
Fix GlobalId namespace alias
murtukov Sep 12, 2019
cf38079
Move exception classes to their relevant namespaces
murtukov Sep 12, 2019
a1a05b4
Update src/ExpressionLanguage/ExpressionFunction/GraphQL/Relay/Global…
murtukov Sep 12, 2019
b91e026
Fix cs (class_attributes_separation)
murtukov Sep 12, 2019
0751f7c
Merge branch 'master' into feature/validation_v.0.13
murtukov Sep 12, 2019
f6546dc
Update src/Validator/Mapping/MetadataFactory.php
murtukov Sep 23, 2019
662a32c
Resolve issues reported in PR conversation
murtukov Sep 23, 2019
eab88ff
Merge remote-tracking branch 'origin/feature/validation_v.0.13' into …
murtukov Sep 23, 2019
9490648
Resolve issues reported in PR conversation
murtukov Sep 23, 2019
9267a83
Rename 'FQCN' to 'fqcn' in the InputValidator class
murtukov Sep 23, 2019
8823497
Fix type-hints in the InputValidator class
murtukov Sep 23, 2019
70cf727
Remove unused import
murtukov Sep 24, 2019
c7172d1
Rename 'prevValue' to 'parentValue'
murtukov Sep 29, 2019
b085db3
Add check for cascade option on scalars
murtukov Sep 29, 2019
a9232e6
Change the shape of errors according to specs
murtukov Sep 29, 2019
fed7dba
Update tests
murtukov Sep 29, 2019
ad40033
Update validation documentation
murtukov Sep 29, 2019
7fa4739
PHP CS Fixer
murtukov Sep 29, 2019
bd6a8a7
Correct a typo in the doc
murtukov Sep 29, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ Documentation
- [Query batching](docs/data-fetching/batching.md)
- [Promise](docs/data-fetching/promise.md)
- [Annotations](docs/annotations/index.md)
- [Validation](docs/validation/index.md)
- [Security](docs/security/index.md)
- [Handle CORS](docs/security/handle-cors.md)
- [Object access control](docs/security/object-access-control.md)
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
"suggest": {
"nelmio/cors-bundle": "For more flexibility when using CORS prefight",
"overblog/graphiql-bundle": "If you want to use graphiQL.",
"react/promise": "To use ReactPHP promise adapter"
"react/promise": "To use ReactPHP promise adapter",
"symfony/translation": "If you want validation error messages to be translated."
},
"require-dev": {
"doctrine/orm": "^2.5",
Expand Down
Binary file added docs/validation/img/diagram_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions docs/validation/img/diagram_1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/validation/img/diagram_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions docs/validation/img/diagram_2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/validation/img/diagram_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions docs/validation/img/diagram_3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading