Giter Site home page Giter Site logo

Comments (6)

RunAge avatar RunAge commented on May 23, 2024 1

Thanks, I will check in free time

from openapi-ts.

mrlubos avatar mrlubos commented on May 23, 2024

@RunAge thanks for reporting! Do you know if this is a regression? What do you think about parameters defined on delete in your example taking precedence over parameters on conflict?

from openapi-ts.

RunAge avatar RunAge commented on May 23, 2024

I think that parameters defined on method overtaking parameters in endpoint is good idea but also I think there can be a options in cli like
--duplicateResolver with "method" | "endpoint" | "prefix"
--duplicatePrefix that can take prefix like --duplicatePrefix="param"
and/or in case there is duplicate in path/query/form/cookie/header/body (ref: ferdikoomen/openapi-typescript-codegen#1855 )
--paramPathPrefix="p"
--paramQueryPrefix="q"
--paramFormDataPrefix="fd"
--paramCookiePrefix="c"
--paramHeaderPrefix="h"
--paramRequestBodyPrefix=""

I can try to implement something like this

from openapi-ts.

mrlubos avatar mrlubos commented on May 23, 2024

@RunAge I'm not sure I agree with the options. How is the endpoint implemented that it could accept prefixed/renamed parameters? What does it do with multiple values?

from openapi-ts.

mrlubos avatar mrlubos commented on May 23, 2024

@RunAge side note, can you try to upgrade to the latest release and see if it works for you? It was a big change set and I want to ensure it's not breaking

from openapi-ts.

mrlubos avatar mrlubos commented on May 23, 2024

@RunAge this is fixed in v0.27.26! 🎉

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.