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

feat: add --ky option #690

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

Conversation

aleclarson
Copy link

Generate a client that uses this library: https://github.com/sindresorhus/ky

@aleclarson aleclarson force-pushed the feat/ky-client branch 3 times, most recently from e42d28c to 8be147d Compare March 5, 2024 06:18
Generate a client that uses this library: https://github.com/sindresorhus/ky
@aleclarson aleclarson marked this pull request as draft March 5, 2024 06:28
Since ky has a special ResponsePromise type, the `request` method cannot use async-await syntax and the returned promise must come from ky (so the expected methods are there). This means the securityWorker cannot be supported by the ky client.
@aleclarson aleclarson marked this pull request as ready for review March 5, 2024 06:59
@aleclarson aleclarson force-pushed the feat/ky-client branch 2 times, most recently from bf2adbb to 04b800b Compare March 6, 2024 01:05
@aleclarson
Copy link
Author

If anyone is interested in using or testing this, it's published to NPM under @aleclarson/swagger-typescript-api@13.0.3.

/cc @hardouinyann @AshotN (since you both reacted)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant