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
{{ message }}
Repository navigation
OpenApiFilterService.CreateFilteredDocument creates duplicate path parameters for paths with multiple operations when parameters are present at the path level #1840
In the event an input document has a path with path parameters shared across the operation like this.
/test/{id}:
get:
summary: Summary for test path with id that is longer than 50 characters description: description for test path with idoperationId: test.WithIdresponses:
'200':
description: testdelete:
summary: Summary for test path with id that is longer than 50 characters description: description for test path with idoperationId: test.WithIdresponses:
'200':
description: testparameters:
- name: idin: pathrequired: truedescription: The id of the testschema:
type: integerformat: int32
The openApiFilterService will treat the parameter as unique for each operation and add a duplicate entry for each operation. like this .
'/test/{id}':
get:
summary: Summary for test path with id that is longer than 50 charactersdescription: description for test path with idoperationId: test_WithIdresponses:
'200':
description: testdelete:
summary: Summary for test path with id that is longer than 50 charactersdescription: description for test path with idoperationId: test_WithIdresponses: { }parameters:
- name: idin: pathdescription: The id of the testrequired: truestyle: simpleschema:
type: integerformat: int32
- name: idin: pathdescription: The id of the testrequired: truestyle: simpleschema:
type: integerformat: int32
At first glance , this looks to be caused by the OperationSearch that adds the pathItem parameter to the search result of each operation.
Activity