Coder Social home page Coder Social logo

Comments (4)

jlalmes avatar jlalmes commented on May 31, 2024 4

Unfortunately, for now you are required to add a zod output schema for each endpoint because this is needed to generate the OpenAPI response body schema.

Fortunately, @sachinraja is working on an awesome tool that will enable us to infer schemas from TS return types (https://github.com/sachinraja/trpc-snapshot) coming soon 🚀.

from trpc-openapi.

jlalmes avatar jlalmes commented on May 31, 2024 1

I'm surprised that this doesn't exist yet.

It's a very hard problem to solve - you can't rush genius! 😅

from trpc-openapi.

sachinraja avatar sachinraja commented on May 31, 2024 1

The repo is private because there's nothing usable yet (only a POC). I'm also focusing on tRPC v10 stuff at the moment.

from trpc-openapi.

mshd avatar mshd commented on May 31, 2024

Awesome, any idea when? Also the link to his repository is broken. I'm surprised that this doesn't exist yet.

from trpc-openapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.