-
Notifications
You must be signed in to change notification settings - Fork 3
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
Is type SerializerCompiler
correct ?
#47
Comments
Then the question is how https://github.com/fastify/fastify/blob/6564ba9b7d8ec7c236cc16f4bf3cdb3cabff69f0/lib/schema-controller.js#L159 be even possible? |
I would say : https://github.com/fastify/fast-json-stringify-compiler/blob/main/standalone.js#L25 |
But it is not imported as standalone and the two version expect different arguments. cc @Eomm |
Let's follow the happy path:
It makes sense, but porting a real test case here will solve any doubt: https://github.com/fastify/fastify/blob/main/test/schema-serialization.test.js |
Thanks for the fast feedback. Indeed, in the happy path the compile function of type About the real test case, as it is a js file and I am trying to solve a typing issue, I don't really understand what I could add to the PR, can you explain a bit more ? Maybe less important |
Prerequisites
Issue
Hello,
From my research, I have the feeling that the declared
SerializerCompiler
might be wrong.In fastify, compiler is eventually called this way :
In fast-json-stringify-compiler; with jfsOpts being already bounded,
My conclusion is that
SerializerCompiler
should be:What do you think ?
The text was updated successfully, but these errors were encountered: