You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This feature might be something only I am interested in, but I like the idea of being able to document information about the "object" that is grouping procedures.
The stripe api does this frequently. The swagger spec also supports tags having descriptions.
For an equivalent "pets" router, we should be able to specify that it is a router that is all about your pets.
Implementation
As far as I can tell, trpc does not support router metadata. The hacky way to do this would be to merge your base t.procedure with another router that just contains a dummy procedure to store the metadata.
The text was updated successfully, but these errors were encountered:
This feature might be something only I am interested in, but I like the idea of being able to document information about the "object" that is grouping procedures.
The stripe api does this frequently. The swagger spec also supports tags having descriptions.
For an equivalent "pets" router, we should be able to specify that it is a router that is all about your pets.
Implementation
As far as I can tell, trpc does not support router metadata. The hacky way to do this would be to merge your base t.procedure with another router that just contains a dummy procedure to store the metadata.
The text was updated successfully, but these errors were encountered: