Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kpanot
Copy link
Contributor

@kpanot kpanot commented May 1, 2024

Proposed change

Add the support of multi Api Tag via the duplication of the Api Class.

Related issues

@kpanot kpanot requested a review from a team as a code owner May 1, 2024 06:59
@github-actions github-actions bot added bug Something isn't working project:@ama-sdk/schematics labels May 1, 2024
*/
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 {}
Copy link
Contributor

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

Copy link
Contributor Author

@kpanot kpanot May 2, 2024

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
@kpanot kpanot force-pushed the bugfix/multi-tag-support branch from 114a3cc to 7df34aa Compare May 7, 2024 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working project:@ama-sdk/schematics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Multi tagged APIs not supported
4 participants