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

[typebox-validator]: typebox-validator Argument of 'TObject' is not assignable to parameter of type 'TSchema' #873

Open
FOZERY opened this issue Dec 6, 2024 · 1 comment

Comments

@FOZERY
Copy link

FOZERY commented Dec 6, 2024

I can't use the TObject schema in the validator due to a type mismatch. There is a problem in the source code that tbValidator esm compiled imports TSchema from cjs @sinclair/typebox.

Github repo with issue implementation:
https://github.com/FOZERY/typebox-validator-issue

Example with default app
image

@yusukebe
Copy link
Member

yusukebe commented Dec 7, 2024

@FOZERY Thank you for raising the issue.

@curtislarson Can you handle this?

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

No branches or pull requests

2 participants