-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
fastify-websocket schema validation #102
Comments
That would be an handy feature for fastify-websocket, would you like to send a PR? |
I would love to but my lack of knowledge would make it so it'll be available in a year :P |
You should be able to access the schema definition (what is passed to the route) in https://github.com/fastify/fastify-websocket/blob/462d5510b8e7aa22e6e9bd62a718fa2791534e51/index.js#L29. I'm not sure who a the actual validator for the route could become available to a websocket. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
You have been so helpful in the past, so here I am.
I have a route that serve HTTP and websocket connections. It works great. I would like to use the build-in validator to validate the object received no matter if it's through http or websocket.
I never really had to use ws before and I just started using schema validation in fastify. Tips are welcome.
The text was updated successfully, but these errors were encountered: