Skip to content

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

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.

1 participant