Skip to content

Commit 947efc5

Browse files
authored
ensure path-level parameters are passed to the theme (#235)
1 parent 689120d commit 947efc5

File tree

1 file changed

+3
-0
lines changed
  • packages/docusaurus-plugin-openapi/src/openapi

1 file changed

+3
-0
lines changed

packages/docusaurus-plugin-openapi/src/openapi/openapi.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ function createItems(openapiData: OpenApiObject): ApiMetadata[] {
156156
),
157157
method,
158158
path,
159+
parameters: (operationObject.parameters ?? []).concat(
160+
pathObject.parameters ?? []
161+
),
159162
servers,
160163
security,
161164
securitySchemes,

0 commit comments

Comments
 (0)