OpenAPI + Zod: Generate The Ultimate TypeScript API Clients Automatically

Поделиться
HTML-код
  • Опубликовано: 12 янв 2025

Комментарии •

  • @mkrass
    @mkrass 5 месяцев назад +5

    I'm working on a spring boot api with a sveltekit frontend right now so this is GOLD

    • @Typed-Rocks
      @Typed-Rocks  5 месяцев назад

      Sounds great. Let me know how it went 👍

  • @guilhermematos1953
    @guilhermematos1953 Месяц назад

    very good video man, was looking for something like that for my fastapi server. Now i need to look more to see what i can generate using react.

  • @cockpitconnect
    @cockpitconnect 5 месяцев назад +3

    TS-Rest is also interesting. It uses Zod to create API contracts and is compatible with frameworks like NestJS, React and VueJS

    • @Typed-Rocks
      @Typed-Rocks  5 месяцев назад +1

      Absolute! If you can create the API yourself then it would also be a nice choice. I like the language agnostic approach :)

  • @wertig6925
    @wertig6925 5 месяцев назад +4

    great work

  • @MrJettann
    @MrJettann 5 месяцев назад +4

    Can you show us, how to use openapi to generate rtk query types and endpoints based on swagger? Would be so amazing

    • @Typed-Rocks
      @Typed-Rocks  5 месяцев назад +2

      I will look into it 👍

  • @TianYuanEX
    @TianYuanEX 4 месяца назад +1

    I remember looking into this really cool tool some time ago, but this is only useful if the backend devs bother to write a good openapi doc

    • @Typed-Rocks
      @Typed-Rocks  4 месяца назад

      Or if they also generate their code from it 😁

  • @Noam-Bahar
    @Noam-Bahar 4 месяца назад

    Looks incredible!!! Currently I'm working on a project that already has Yup implemented. I don't need to install another validation library. Are there an openapi generators for other validation libraries, specifically Yup?

    • @Typed-Rocks
      @Typed-Rocks  4 месяца назад

      Sadly I don‘t know. The only thing I found is a small lib on github called openapi-yup-generator which is quite old

  • @llhu90ll
    @llhu90ll 4 месяца назад

    Thank you for sharing. It looks very handy, and for the db is there something like this?

    • @Typed-Rocks
      @Typed-Rocks  4 месяца назад

      I don‘t know, actually, I will look into it 👍