Giter Site home page Giter Site logo

Comments (7)

dagadbm avatar dagadbm commented on May 24, 2024 1

wow its working!
incredible! Thank you so much ! i did --base='' and it worked like a charm

from openapi-ts.

mrlubos avatar mrlubos commented on May 24, 2024

@dagadbm Try https://www.npmjs.com/package/@nicolas-chaulet/openapi-typescript-codegen/v/0.27.22 with the following

openapi --base foo

from openapi-ts.

dagadbm avatar dagadbm commented on May 24, 2024

you saved me from doing some terrible hacks around reading the file and doing a regex to update the BASE value

from openapi-ts.

chitalian avatar chitalian commented on May 24, 2024

@dagadbm Try https://www.npmjs.com/package/@nicolas-chaulet/openapi-typescript-codegen/v/0.27.22 with the following

openapi --base foo

Is this going to be merged into main some time?

from openapi-ts.

mrlubos avatar mrlubos commented on May 24, 2024

@chitalian eh? It's available in https://github.com/hey-api/openapi-ts since v0.27.22

from openapi-ts.

chitalian avatar chitalian commented on May 24, 2024

@mrlubos I didnt want to use a mirror version. Thanks for making it, but we needed to set it to an environment variable and not a string anyways...

Thanks.

For anyone else that is looking for a solution: We ended up using this
https://github.com/drwpow/openapi-typescript/tree/main/packages/openapi-fetch

from openapi-ts.

mrlubos avatar mrlubos commented on May 24, 2024

@chitalian I think you were looking to use interceptors if you need to set the base during runtime. That would achieve the same functionality as the fetch client you linked above

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.