jlouis / graphql-erlang

GraphQL implementation in Erlang.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jun 2018 clarify: Handling of union types (#266, #441, #464)

jlouis opened this issue · comments

Handle these cases

  • 266 says "Union types must be unique"
  • 441 says "Thou must not declare empty unions"
  • 464 says "We messed up the description, lets fix it"

So this means we need two test cases:

  • Create an empty union and have it fail
  • Create a union with the same type occurring twice and have it fail

This has now been handled on master.