Skip to content

Commit 319a1e5

Browse files
authored
Ensure operation security reqs inherits from spec-level when not defined (#3690)
1 parent 50cb0c6 commit 319a1e5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/quick-donuts-double.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@gitbook/react-openapi": patch
3+
---
4+
5+
Ensure operation security requirements inherits from spec-level when not defined

packages/react-openapi/src/resolveOpenAPIOperation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export async function resolveOpenAPIOperation(
7171

7272
return {
7373
servers,
74-
operation,
74+
operation: { ...operation, security },
7575
method,
7676
path,
7777
securities,

0 commit comments

Comments
 (0)