juniper
juniper copied to clipboard
Ability to enforce warn(missing_docs) or deny(missing_docs) on graphql objects derived with `juniper::object`
When writing crates, I tend to add the #![warn(missing_docs)}
directive to enforce the use of documentation on publicly accessible apis. With the way the proc macro transforms the implementation block, rust is unable to know that there were undocumented functions in there to begin with.
A proposed solution is to just pass through the implemetation out aswell so that it actually produces the implemtation onto the struct. This could solve another possible problem being the lack of ability to use the resolvers by other resolvers, possibly reducing code duplication.
This would also be useful to be able to enforce descriptions of arguments for functions