Repository navigation
Replies: 4 comments 1 reply
|
Love this project so much 💪 Just wanted to link to a few related projects which you might find helpful for adding OpenAPI support:
|
|
@KATT one thought - could this rely on zod-to-json-schema as discussed in #714? If going with this, it might be nice to add an (optional) An aside: I've mulled requesting an |
|
Locking this discussion to keep it within #755 - @transitive-bullshit, feel free to jump into the chat over there! |
|
For tRPC to OpenAPI compliant endpoints & Swagger schema generation, please use |
Uh oh!
There was an error while loading. Please reload this page.
Would be possible for each query/mut to have a
schema:-prop next to the resolver where one could define an api schema of which the structure could be statically enforced as well.Maybe the input arg of the schema could also be used as an actual input validator?
Another way could possibly be to statically infer the swagger schema with codegen, but then one couldn't actually document properties.
All reactions