Giter Site home page Giter Site logo

Comments (13)

ianberdin avatar ianberdin commented on July 20, 2024 1

If we don't specify an operationId, the API will look like this:

api.users.usersControllerCreate() -> UsersControllerCreateResponse
api.carts.cartsControllerCreate() -> CartsControllerCreateResponse
api.bookings.bookingsControllerCreate() -> BookingsControllerCreateResponse

from openapi-ts.

mrlubos avatar mrlubos commented on July 20, 2024 1

Try https://heyapi.vercel.app/openapi-ts/migrating.html#v0-46-0

from openapi-ts.

ianberdin avatar ianberdin commented on July 20, 2024 1

Wow, it works as expected!
Thank you.

from openapi-ts.

mrlubos avatar mrlubos commented on July 20, 2024

Hey @ianberdin, is this a regression?

from openapi-ts.

ianberdin avatar ianberdin commented on July 20, 2024

No, it's not. I can't use the next version 0.46.* because it breaks completely, so I'm using 0.45.3.

from openapi-ts.

ianberdin avatar ianberdin commented on July 20, 2024

There is no this on root file, I see it does not use classes anymore (0.46.*):
image

from openapi-ts.

ianberdin avatar ianberdin commented on July 20, 2024

Thank you for your quick response. The issue with this has been resolved.

The main problem now is non-unique names when using a custom operationId. Is there a way to fix this?

image

from openapi-ts.

ianberdin avatar ianberdin commented on July 20, 2024

And this, if I set new hey-api fetch client:
image

from openapi-ts.

mrlubos avatar mrlubos commented on July 20, 2024

Not that I'm aware, will need to look at this. Thanks for reporting!

from openapi-ts.

ianberdin avatar ianberdin commented on July 20, 2024

If I remove the operationId, it will look like this:

api.users.usersControllerCreate() - not very appealing for a customer-facing API :(

image

from openapi-ts.

mrlubos avatar mrlubos commented on July 20, 2024

Are you on Discord @ianberdin? Would like to understand your use case better

from openapi-ts.

ianberdin avatar ianberdin commented on July 20, 2024

I've sent you a request in Discord.
@ianberdin mine username.

from openapi-ts.

mrlubos avatar mrlubos commented on July 20, 2024

I think you can resolve this with services.methodNameBuilder(), let me know if not

from openapi-ts.

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.