-
Notifications
You must be signed in to change notification settings - Fork 25
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
Use with fluent-json-schema now requires to call valueOf in ObjectSchema when using Typescript #138
Comments
cc @klaseca I think I would revert all those changes. It cannot support all the third-party library. Especially, it cannot support |
Under the hood, |
No, it should support out-of-the-box. Since, Anyway, it would be a breaking change in either end. If no other fixes come up, the only choice is revert on current release. |
I would also revert the problematic PR and maybe add fluent-json-schema as dependency or as peerDependency |
Perhaps the best solution in this situation would be to return the |
Fastify can support fluent-json-schema without the need of it being a dependency. Take a look how it's done there. |
FWIW: Something similar is going on with types here when using with typebox |
Prerequisites
Last working version
5.1.0
Stopped working in version
5.1.1
Node.js version
18.x
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
12.3
💥 Regression Report
Typings in Typescript now throw an error when using a
fluent-json-schema
generated schema as input forenvSchema
Steps to Reproduce
In a Typescript file the next block of code reproduces the issue
Nevertheless the following block of code does not throw an error
Expected Behavior
As
ObjectSchema
fromfluent-json-schema
was removed from typings in #137 it might be solved otherwise or maybe be documented to avoid future confusionThe text was updated successfully, but these errors were encountered: