File tree Expand file tree Collapse file tree 2 files changed +38
-7
lines changed Expand file tree Collapse file tree 2 files changed +38
-7
lines changed Original file line number Diff line number Diff line change @@ -34,3 +34,34 @@ cargo add graphql-tools
34
34
- [ ] Validation rules (in-progress)
35
35
36
36
> If you have an idea / missing feature, feel free to open an issue / start a GitHub discussion!
37
+
38
+ #### Validation Rules
39
+
40
+ > This comparison is based on ` graphql-js ` refernece implementation.
41
+
42
+ - [x] ExecutableDefinitions (not actually needed)
43
+ - [x] UniqueOperationNames
44
+ - [x] LoneAnonymousOperation
45
+ - [x] SingleFieldSubscriptions
46
+ - [x] KnownTypeNames
47
+ - [x] FragmentsOnCompositeTypes
48
+ - [x] VariablesAreInputTypes
49
+ - [x] LeafFieldSelections
50
+ - [x] FieldsOnCorrectType
51
+ - [x] UniqueFragmentNames
52
+ - [x] KnownFragmentNames
53
+ - [x] NoUnusedFragments
54
+ - [ ] PossibleFragmentSpreads
55
+ - [ ] NoFragmentCycles
56
+ - [ ] UniqueVariableNames
57
+ - [ ] NoUndefinedVariables
58
+ - [ ] NoUnusedVariables
59
+ - [ ] KnownDirectives
60
+ - [ ] UniqueDirectivesPerLocation
61
+ - [ ] KnownArgumentNames
62
+ - [ ] UniqueArgumentNames
63
+ - [ ] ValuesOfCorrectType
64
+ - [ ] ProvidedRequiredArguments
65
+ - [ ] VariablesInAllowedPosition
66
+ - [x] OverlappingFieldsCanBeMerged
67
+ - [ ] UniqueInputFieldNames
Original file line number Diff line number Diff line change @@ -9,18 +9,18 @@ use super::{
9
9
pub fn default_rules_validation_plan ( ) -> ValidationPlan {
10
10
let mut plan = ValidationPlan { rules : vec ! [ ] } ;
11
11
12
+ plan. add_rule ( Box :: new ( UniqueOperationNames { } ) ) ;
12
13
plan. add_rule ( Box :: new ( LoneAnonymousOperation { } ) ) ;
14
+ plan. add_rule ( Box :: new ( SingleFieldSubscriptions { } ) ) ;
13
15
plan. add_rule ( Box :: new ( KnownTypeNames { } ) ) ;
14
- plan. add_rule ( Box :: new ( FieldsOnCorrectType { } ) ) ;
15
- plan. add_rule ( Box :: new ( KnownFragmentNames { } ) ) ;
16
16
plan. add_rule ( Box :: new ( FragmentsOnCompositeTypes { } ) ) ;
17
- plan. add_rule ( Box :: new ( OverlappingFieldsCanBeMerged { } ) ) ;
18
- plan. add_rule ( Box :: new ( NoUnusedFragments { } ) ) ;
17
+ plan. add_rule ( Box :: new ( VariablesAreInputTypes { } ) ) ;
19
18
plan. add_rule ( Box :: new ( LeafFieldSelections { } ) ) ;
20
- plan. add_rule ( Box :: new ( UniqueOperationNames { } ) ) ;
19
+ plan. add_rule ( Box :: new ( FieldsOnCorrectType { } ) ) ;
21
20
plan. add_rule ( Box :: new ( UniqueFragmentNames { } ) ) ;
22
- plan. add_rule ( Box :: new ( SingleFieldSubscriptions { } ) ) ;
23
- plan. add_rule ( Box :: new ( VariablesAreInputTypes { } ) ) ;
21
+ plan. add_rule ( Box :: new ( KnownFragmentNames { } ) ) ;
22
+ plan. add_rule ( Box :: new ( NoUnusedFragments { } ) ) ;
23
+ plan. add_rule ( Box :: new ( OverlappingFieldsCanBeMerged { } ) ) ;
24
24
25
25
plan
26
26
}
You can’t perform that action at this time.
0 commit comments