-
Notifications
You must be signed in to change notification settings - Fork 39
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
[Feature]: Turn SDK Mock API to ApiClient agnostic implementation #2117
Labels
Comments
kpanot
added
enhancement
New feature or request
breaking change
This issue or pull request introduces a breaking change
labels
Sep 2, 2024
6 tasks
This was referenced Sep 25, 2024
cpaulve-1A
added a commit
that referenced
this issue
Oct 2, 2024
…m core (#2212) ## Proposed change Rollback `api-mock.ts` to use deprecate fetch client from core. This change will be part of #2117. <!-- Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that is required for this change. --> ## Related issues - 🔗 Related to: #2117 <!-- Please make sure to follow the contributing guidelines on https://github.com/amadeus-digital/Otter/blob/main/CONTRIBUTING.md -->
This was referenced Oct 23, 2024
github-merge-queue bot
pushed a commit
that referenced
this issue
Oct 24, 2024
## Proposed change <!-- Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that is required for this change. --> deprecate the default client api based mocks in SDK generated mocks ## Related issues - 🚀 Feature #2117 <!-- Please make sure to follow the contributing guidelines on https://github.com/amadeus-digital/Otter/blob/main/CONTRIBUTING.md -->
kpanot
removed
the
breaking change
This issue or pull request introduces a breaking change
label
Oct 25, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context
In the current implementation the generated
api-mock.ts
in the SDK imports theApiFetchClient
.To be able to fully support the multi client strategy, the
api-mock.ts
file should be ApiClient agnostic.Proposal
ApiClient
@ama-sdk/client-fetch
from the SDK shell.isomorphic-fetch
from the SDK shell.The text was updated successfully, but these errors were encountered: