Comments (6)
Thanks, I will check in free time
from openapi-ts.
@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.
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.
@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.
@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.
@RunAge this is fixed in v0.27.26
! 🎉
from openapi-ts.
Related Issues (20)
- schema compliance with jsr HOT 3
- Allow inlining types in services signature instead of reference to $OpenApiTs HOT 1
- Allow easy differentiation by status codes HOT 4
- invalid identifier created (starting with digits) HOT 1
- formData: mismatch Type HOT 5
- Remove service classes
- Typescript enums not generated HOT 3
- Default response types (error) override response types HOT 3
- Setting a custom httpsAgent on the generated AxiosInstance HOT 9
- Accessing Both Response Body and Headers HOT 2
- Export `OpenApiSchema` interface in the generated client HOT 2
- Pass APIRequestOptions to the response interceptor
- Client instance duplicate identifier
- Specify Line Endings HOT 1
- Dryrun flag checking causes the app not to run. HOT 8
- Inconsistent URL Encoding in Generated Services HOT 3
- Question regarding license HOT 9
- Switch to AbortSignal instead of CancellablePromise HOT 2
- Missed type for `type: ['array']`, produces unknown[] HOT 11
- Should "default" spec responses throw an error? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openapi-ts.