Skip to content

feat: expose built-in loaders#2543

Closed
rrmesquita wants to merge 1 commit intoopenapi-ts:mainfrom
rrmesquita:feat/expose-loaders
Closed

feat: expose built-in loaders#2543
rrmesquita wants to merge 1 commit intoopenapi-ts:mainfrom
rrmesquita:feat/expose-loaders

Conversation

@rrmesquita
Copy link

@rrmesquita rrmesquita commented Dec 9, 2025

Changes

This PR exposes the built-in package loaders, and the loadType helper itself.
This enables composability for custom types. For instance, by copying ClassTypeLoader into my code, I was able to make a custom decorator to generate different oneOf for http exceptions, with automatic inference of title and description.

How to Review

Determine if exposing loadType could be problematic if you ever need to refactor its API.

Checklist

  • Unit tests updated
  • docs/ updated (if necessary)
  • pnpm run update:examples run (only applicable for openapi-typescript)

@rrmesquita rrmesquita requested a review from a team as a code owner December 9, 2025 10:59
@netlify
Copy link

netlify bot commented Dec 9, 2025

👷 Deploy request for openapi-ts pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 0b8d865

@changeset-bot
Copy link

changeset-bot bot commented Dec 9, 2025

🦋 Changeset detected

Latest commit: 0b8d865

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
openapi-metadata Minor

Not sure what this means? Click here to learn what changesets are.

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

@drwpow
Copy link
Contributor

drwpow commented Feb 8, 2026

Thanks for your submission! But sorry to announce we’ll be putting this package into maintenance mode going forward which means we’re no longer accepting PRs/submissions.

However the code is all MIT-licensed so feel free to maintain your own fork or use it as a starter 🙂

@drwpow drwpow closed this Feb 8, 2026
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.

2 participants