Skip to content

Conversation

@theobat
Copy link
Contributor

@theobat theobat commented Dec 16, 2018

The purpose of this PR is to fully and automatically support the parsing and validation of a json object of variable values referenced by their names into a VariableValues object.
This project is using Aeson already so the interface will use the aeson AST for JSON.
The goal is to address #145, #132, and to replace #128

Schematically, the idea is to follow the generation of the schema by a double tree descending job where we compare the GraphQL's expected type and the JSON's observed value to either return an error or return the expected Haskell/GraphQL value.
For now, the code will reuse the Validation module and the execution module. The actual variables parsing will be done in the Validation module.

I'm open to any suggestion or help.

@theobat theobat closed this Dec 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant