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

fix(zod-openapi): fix .openapi type so routes are aggregated #173

Closed
wants to merge 3 commits into from

Conversation

msutkowski
Copy link
Contributor

@msutkowski msutkowski commented Sep 23, 2023

Fixes #172

image

@changeset-bot
Copy link

changeset-bot bot commented Sep 23, 2023

🦋 Changeset detected

Latest commit: 0d9bdef

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

This PR includes changesets to release 1 package
Name Type
@hono/zod-openapi 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

id: number
message: string
}
>,
'/'
>
expectTypeOf(appRoutes).toMatchTypeOf<H>
Copy link
Contributor Author

@msutkowski msutkowski Sep 23, 2023

Choose a reason for hiding this comment

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

This is correct, but expectTypeOf doesn't appear to be matching correctly. If you modify this to intentionally break the types, it never errors (at least for me).

@yusukebe
Copy link
Member

Hi @msutkowski !

I didn't notice the PR here and fixed it myself. My apologies. Sorry!

@yusukebe yusukebe closed this Sep 25, 2023
@msutkowski msutkowski deleted the ms/fix-openapi-type branch September 25, 2023 21:12
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.

hc with zod-openapi middleware doesn't include all routes
2 participants