Fredx87 / openapi-io-ts

OpenAPI code generation tool with validation powered by io-ts
MIT License
36 stars 9 forks source link

Fix request body file imports #27

Closed anulman closed 6 months ago

anulman commented 6 months ago

Replace custom imports with the generic getImports() when writing request body files. I noticed that anything that referenced the DateFromISOString type was breaking.

changeset-bot[bot] commented 6 months ago

⚠️ No Changeset found

Latest commit: 00371b94c620f02dfb923eec9a9279b26439a3c7

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

Fredx87 commented 6 months ago

Thank you @anulman for the recent PRs!

Unfortunately, I am not planning to maintain this library anymore, since I stopped using io-ts and fp-ts. I would like to rewrite the library foreffectand@effect/schema`, but it is not going to happen soon.

anulman commented 6 months ago

That's all right! We've been maintaining our own fork at nmbrco/openapi-io-ts; was mostly trying to contrib back to your work in appreciation :)

Tbqh we were on zod before, but needed more out of generation than their ecosystem supported. Your work in comparison was much easier to hack on, even with the io-ts learning curve.

Thanks for publishing :)