You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to specify one attribute near the route method so that it points to an object that will contain all the attributes necessary to describe the route?
Goal: not to clutter the main code with attributes, so that the route method has only 2 attributes
the class ClassContainsExampleRouteSchema contains all needed attributes for describes route (requests, response, tags, ...) OR it can use #[OA\Get(...)].
I know that I can describe everything in one attribute #[OA\Get(...)] on route, but it will contain too much code.
Perhaps there is some other solution to move all descriptive OA attributes from the route's method to another place (a separate class or method) ?
Additional context
No response
The text was updated successfully, but these errors were encountered:
Version
5
Question
Is it possible to specify one attribute near the route method so that it points to an object that will contain all the attributes necessary to describe the route?
Goal: not to clutter the main code with attributes, so that the route method has only 2 attributes
For example:
the class ClassContainsExampleRouteSchema contains all needed attributes for describes route (requests, response, tags, ...) OR it can use #[OA\Get(...)].
I know that I can describe everything in one attribute #[OA\Get(...)] on route, but it will contain too much code.
Perhaps there is some other solution to move all descriptive OA attributes from the route's method to another place (a separate class or method) ?
Additional context
No response
The text was updated successfully, but these errors were encountered: