New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(schematic-sdk): to support the multi tag API #1739
base: main
Are you sure you want to change the base?
Conversation
...pescript/core/openapi-codegen-typescript/src/main/resources/typescriptFetch/api/api.mustache
Outdated
Show resolved
Hide resolved
*/ | ||
export interface {{#uppercaseFirst}}{{nickname}}{{/uppercaseFirst}} extends {{#uppercaseFirst}}{{nickname}}{{/uppercaseFirst}}RequestData {} | ||
/** @deprecated please use {{classname}}{{#uppercaseFirst}}{{nickname}}{{/uppercaseFirst}}RequestData instead, will be remove in Otter v12 */ | ||
export interface {{#uppercaseFirst}}{{nickname}}{{/uppercaseFirst}}RequestData extends {{classname}}{{#uppercaseFirst}}{{nickname}}{{/uppercaseFirst}}RequestData {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
even if the interface is deprecated it is still exported, and I am afraid that we will still have duplications on the barrel file, no ?
{{#uppercaseFirst}}{{nickname}}{{/uppercaseFirst}}RequestData
from one my.api.ts
file and the same maybe from another file your.api.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, unfortunately the multi tag support cannot be achieved without breaking change (as we cannot really removed an interfaced exported already).
So this PR is an enabler but the support will be effective only after breaking change.
[Bug]: Multi tagged APIs not supported #855
114a3cc
to
7df34aa
Compare
Proposed change
Add the support of multi Api Tag via the duplication of the Api Class.
Related issues