Skip to content

Path parameter duplicated in body. #1366

@RolandsThinAirLabs

Description

@RolandsThinAirLabs

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions