diff options
| author | Eugen Wissner <belka@caraus.de> | 2020-09-18 07:32:58 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2020-09-18 07:32:58 +0200 |
| commit | 9a08aa5de73e225a9a76017aee4886ce7f6eccec (patch) | |
| tree | 6cdeadc16c994bcb3bd13764c1a7104c2cb56c09 /CHANGELOG.md | |
| parent | 497b93c41b2534ec2b92b49e93267178417bef56 (diff) | |
| download | graphql-9a08aa5de73e225a9a76017aee4886ce7f6eccec.tar.gz | |
Validate directives are unique per location
Diffstat (limited to 'CHANGELOG.md')
| -rw-r--r-- | CHANGELOG.md | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c904d7..f7b2e94 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,8 +10,9 @@ and this project adheres to ### Changed - `AST.Document.Selection` wraps additional new types: `Field`, `FragmentSpread` and `InlineFragment`. Thus validation rules can be defined more concise. -- `AST.Document.Argument` contains the argument location. -- `AST.Lexer.colon` ignores the result (it is always a colon). +- `AST.Document`: `Argument` and `Directive` contain token location. +- `AST.Lexer.colon` and `AST.Lexer.at` ignore the result (it is always the +- same). - `Validate.Validation`: `Validation.rules` was removed. `Validation.rules` contained the list of rules, but the executed rules shouldn't know about other rules. `rules` was a part of the `Validation` context to pass it easier @@ -24,7 +25,7 @@ and this project adheres to ### Added - `Validate.Validation.Rule`: `SelectionRule`, `FieldRule`, `FragmentRule`, - `FragmentSpreadRule`, `ArgumentsRule` constructors. + `FragmentSpreadRule`, `ArgumentsRule`, `DirectivesRule` constructors. - `Validate.Rules`: - `fragmentsOnCompositeTypesRule` - `fragmentSpreadTargetDefinedRule` @@ -32,6 +33,7 @@ and this project adheres to - `noUnusedFragmentsRule` - `noFragmentCyclesRule` - `uniqueArgumentNamesRule` + - `uniqueDirectiveNamesRule` - `AST.Document.Field`. - `AST.Document.FragmentSpread`. - `AST.Document.InlineFragment`. |
