-
Notifications
You must be signed in to change notification settings - Fork 92
Open
Description
Similar to issue#1356
path parameters provided in the RouteConfig interface are also displayed as parameters in the body of the request in Swagger docs.
for example
{
method: 'PATCH',
path: '/user/:id/name/:newName'
}
Will generate a swagger doc that has both path parameters and body parameters as arguments for the route.
The body is not required and the resolver will not receive the body parameters as arguments.
There could be a check to see if the mutation's variables are already accounted for in the path as parameters and then those variables could be skipped when building the request's expected body for swagger.
Metadata
Metadata
Assignees
Labels
No labels