-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
include schema property in route object #93
Comments
TBH I can't see the PRO on this feature. This plugin is intended to:
The schemas do not have a constant structure, if a dev customizes the
That indeed is a generic approach that could be useful tho, and if users want the schema (whatever format it is) they could implement by themself |
Are you open for a PR for the second approach? Maybe my usecase for this Feature is helpful: I want to use this Plugin to go through my Fastify Application and generate test cases for routes and decorators. To generate valid route test cases I need the validation schemas of the routes |
Sure
Wow, I would like to see it in action! Did not think about this use case |
Happy to ping you if I have a prototype! I think it could even be a nice feature for the |
Closed with #96 |
Currently the route object only contains the
method
,url
,prefix
and the hooks.fastify-overview/lib/utils.js
Lines 37 to 42 in 140b0ee
Maybe we can provide a plugin option to optionally get the route schema. Another idea would be, for example, to give a function as a plugin option that transforms the routeOptions object. This would give the user complete control over what is contained in the route object.
The text was updated successfully, but these errors were encountered: