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

Wrong inferred type when using coercion? #373

Closed
heivo opened this issue Nov 27, 2024 · 0 comments · Fixed by #374
Closed

Wrong inferred type when using coercion? #373

heivo opened this issue Nov 27, 2024 · 0 comments · Fixed by #374

Comments

@heivo
Copy link

heivo commented Nov 27, 2024

Hi,

thanks for this awesome library!

I have a question, not sure if it's a bug in the library or if I'm doing it wrong:
I use coercion to automatically parse an ISO 8601 date string to a Date object. That works and the OpenAPI has the correctly type "string". However when I try to provide examples there is a TS type error:

image

I can fix it by providing Dates as examples, just wondering if that is how it's supposed to work.

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 a pull request may close this issue.

1 participant