From 26cc53ce0678d48bf7d5550df65171e6bf5288d2 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Fri, 22 May 2020 10:11:48 +0200 Subject: Reject variables as default values --- CHANGELOG.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 7633c5a..c54d090 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,14 +7,17 @@ and this project adheres to [Haskell Package Versioning Policy](https://pvp.haskell.org/). ## [Unreleased] +### Fixed +- The parser rejects variables when parsing defaultValue (DefaultValue). The + specification defines default values as `Value` with `const` parameter and + constant cannot be variables. `AST.Document.ConstValue` was added, + `AST.Document.ObjectField` was modified. + ### Changed - `Resolver` is now `Resolver Name FieldResolver` where `FieldResolver` can contain a JSON value or another resolver, which is invoked during the execution. `FieldResolver` is executed in `ActionT` and the current `Field` is passed in the reader and not as an explicit argument. -- `Execute.Transform.OperationDefinition` is almost the same as - `AST.Document.OperationDefinition`. It is used to unify operations in the - shorthand form and other operations. - `Execute.Transform.operation` has the prior responsibility of `Execute.Transform.document`, but transforms only the chosen operation and not the whole document. `Execute.Transform.document` translates -- cgit v1.2.3