jlouis / graphql-erlang

GraphQL implementation in Erlang.
Other
313 stars 52 forks source link

Add tests for unions #181

Closed jlouis closed 6 years ago

jlouis commented 6 years ago

; Test empty unions. These were already correctly rejected by the parser which disallows an empty union specification altogether. It requires at least one entry. ; Test unions with duplicate names. This is now handled in the Schema validator where we check a union for unique references. This ensures a union is not going to contain the same name twice.