Automated Schema validity tests for Absinthe

Recently, on a project I work on, a developer committed a type with a name that is invalid, according to the official GQL spec.

He used the name: option on the type to give it name: "Some token".

This broke the automatic introspection provided by some clients. I was somewhat surprised it was not caught by Absinthe before getting to this point. I looked into the Absinthe source and found Absinthe.Test.prime/1, but that does not appear to do this.

Have i missed something or is this absent from Absinthe?

This is missing in Absinthe and should be added, please file an issue, thanks! We do a lot of schema validity checks, but that’s apparently one we missed.

1 Like

Thanks!

2 Likes

PR to fix was merged, marking solved

1 Like