juniper icon indicating copy to clipboard operation
juniper copied to clipboard

Ability to enforce warn(missing_docs) or deny(missing_docs) on graphql objects derived with `juniper::object`

Open DusterTheFirst opened this issue 4 years ago • 1 comments

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.

DusterTheFirst avatar Oct 12 '20 02:10 DusterTheFirst

This would also be useful to be able to enforce descriptions of arguments for functions

DusterTheFirst avatar Oct 26 '20 15:10 DusterTheFirst