Skip to content

Expand Example Documentation at "openapi-ts.dev/examples" #1813

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

Merged
merged 6 commits into from
Aug 14, 2024

Conversation

bennobuilder
Copy link
Contributor

@bennobuilder bennobuilder commented Aug 3, 2024

Changes

The example documentation on the openapi-typescript homepage has been expanded to include:

  1. Addition of feature-fetch in the Data Fetching section (Example)
  2. Two new sections:

The goal is to showcase additional examples that might bring value to the openapi-typescript user. Further expansion will be based on your (@drwpow) feedback and whether you think this additions can bring value to your users.

cheers

Copy link

changeset-bot bot commented Aug 3, 2024

⚠️ No Changeset found

Latest commit: 2844c14

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@kerwanp kerwanp added openapi-fetch Relevant to the openapi-fetch library docs Requires an update to docs and removed openapi-fetch Relevant to the openapi-fetch library labels Aug 10, 2024
@bennobuilder
Copy link
Contributor Author

Hey @kerwanp @drwpow,

Do you think this addition to the example docs would bring value to the community? If not, feel free to close this Draft.

Thanks 😊

@drwpow
Copy link
Contributor

drwpow commented Aug 14, 2024

Ah sorry; didn’t realize this was ready for review as a draft. In the future, please just open a full PR so we know it’s ready for feedback.

This is great! I’m so excited to see more libraries take this approach, and thanks for bringing this library to our attention! We’ll always add other library recommendations like this provided they have an open license. More options in OSS helps everyone, and the “competition” makes the internet better 🙂.

Will mark as ready for review, and I think as-written this is good, but just let me know when you’d like to merge it and I’d be happy to.

@drwpow drwpow marked this pull request as ready for review August 14, 2024 10:19
@drwpow drwpow requested a review from a team as a code owner August 14, 2024 10:19
@bennobuilder
Copy link
Contributor Author

Ah sorry; didn’t realize this was ready for review as a draft. In the future, please just open a full PR so we know it’s ready for feedback.

This is great! I’m so excited to see more libraries take this approach, and thanks for bringing this library to our attention! We’ll always add other library recommendations like this provided they have an open license. More options in OSS helps everyone, and the “competition” makes the internet better 🙂.

Will mark as ready for review, and I think as-written this is good, but just let me know when you’d like to merge it and I’d be happy to.

Yeah, sorry for the confusion. The draft was intended to check if you guys are open to including libraries I created in your example section (as stated in the description). I believe they could benefit users of openapi-typescript, but I was unsure whether you guys had the same view.

I’ve updated the example documentation, and the PR is now ready for review.

cheers :)

As a site note, the benchmark from here seems to be a bit outdated? On my machine (MacBook M3 Pro) for example openapi-typescript-fetch was the fastest (see image) and it also got more lightweight.

image

@drwpow
Copy link
Contributor

drwpow commented Aug 14, 2024

The draft was intended to check if you guys are open to including libraries I created in your example section (as stated in the description). I believe they could benefit users of openapi-typescript, but I was unsure whether you guys had the same view.

I’m a big believer in promoting each others’ open source work, because that’s the spirit of what we’re doing! If people take this code, and build off of it, or develop their own libraries, that’s the entire point! 😄 Everyone only benefits from more libraries. And if they’re philosophically aligned like your library is to this project, even better 😎

As a site note, the benchmark from here seems to be a bit outdated?

It’s not outdated per se; just flaky. We are working on improving it here: #1818. Thoughts welcome, but I am now suspicious of msw (unconfirmed) playing a part in the flakiness. We’ll improve the benchmarks across the board.

Oh but you’re right—openapi-typescript-fetch did get a recent update that sped it up by quite a bit. Didn’t mean to deny them of that; we should update the benchmarks we have 😅. But I also would like to spend more time on #1818 so we get more reliable numbers overall.

Copy link
Contributor

@drwpow drwpow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thanks for the improvements to the docs as well.

Will merge this, but feel free to add any followups if needed

@drwpow drwpow merged commit be08562 into openapi-ts:main Aug 14, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Requires an update to docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants