Closed moises-ph closed 1 year ago
Thanks for reporting!
Can you provide steps to reproduce? We often need a reproducible example, e.g. some code that allows someone else to recreate your problem by just copying and pasting it. If it involves more than a couple of different file, create a new repository on GitHub and add a link to that.
Sure, I solved the problem using JSON Schema instead of sinclair validation. But you can tell if there's a solution for that. The code is Here in my repo
I don't see the issue on the code linked. Can we close this then?
I was trying to add a schema validation for post route in fastify like this:
When I run build for running the server I get this:
But I have made an aplication before that is very similar to this one, only schema and some business logic changes. In that aplication I used this way to add schema validation to the routes and It works!. But I do the same in this one and I don't understand why is that error.
The Schema is this:
Hope you can help me. Thanks :)