graphql/tests/Language/GraphQL
Ben Sinclair ca0f0bd32d Fix some issues with directive definitions
I found some issues with directive definitions:

- I couldn't use `on FIELD_DEFINITION`, I believe because `FIELD` was parsed
  first in `executableDirectiveLocation`. I've combined both
  `executableDirectiveLocation` and `typetypeSystemDirectiveLocation` into one
  function which can reorder them to ensure every directive location gets a fair
  chance at parsing.

Not actually to do with directives, some literals weren't being parsed
correctly.

- The GraphQL spec defines list to be `[]` or `[Value]`, but empty literal lists
  weren't being parsed correctly because of using `some` instead of `many`.

- The GraphQL spec defines objects to be `{}` or `{Name: Value}`, but empty
  literal objects had the same issue.
2021-02-21 23:35:34 +11:00
..
AST Fix some issues with directive definitions 2021-02-21 23:35:34 +11:00
Execute Replace Map with OrderedMap 2021-02-19 08:09:04 +01:00
Type Remove encoder test based on old external files 2020-08-22 06:39:52 +02:00
Validate Split validation rule tests in contexts 2021-02-06 12:54:27 +01:00
ErrorSpec.hs Move path to the execution error 2020-09-16 09:12:49 +02:00
ExecuteSpec.hs Collect types once the schema is created 2020-10-07 05:24:51 +02:00