Working with the Mina Node GraphQL API, I found out a todo in the code that is generating an invalid GraphQL schema.
The type protocolStateProof breaks the GraphQL schema validation because is an empty type, which is not a valid definition.
Some clients might ignore the issue but stricter clients will fail.
Working with the Mina Node GraphQL API, I found out a
todo
in the code that is generating an invalid GraphQL schema.The type protocolStateProof breaks the GraphQL schema validation because is an empty type, which is not a valid definition. Some clients might ignore the issue but stricter clients will fail.
Code definition: https://github.com/MinaProtocol/mina/blob/22c1608ba40b135e256a0b368ba7e4a8f320b5ae/src/lib/mina_graphql/mina_graphql.ml#L1378
From the GraphQL specs
Suggestion:
If you don't want to consider deleting it or commenting it, then assign a dummy definition to it like the following:
(carbonara from Discord)