Skip to content

Commit 0257f82

Browse files
committed
fix: use headers with first level of recursion in derived paths
1 parent 580a826 commit 0257f82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/openapi.specificationExtensions.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ const encodingObjectPaths: JsonPath[] = [
114114
const schemaObjectPaths: JsonPath[] = [
115115
['components', 'schemas', 'someSchema'],
116116
...parameterObjectPaths.map(path => [...path, 'schema']),
117-
...headerObjectPaths.map(path => [...path, 'schema']),
117+
...headerObjectPathsWithRecursionFirstLevel.map(path => [...path, 'schema']),
118118
...mediaTypeObjectPaths.map(path => [...path, 'schema']),
119119
]
120120

@@ -185,7 +185,7 @@ const oAuthFlowObjectPaths: JsonPath[] = [
185185
const exampleObjectPaths: JsonPath[] = [
186186
['components', 'examples', 'someExample'],
187187
...parameterObjectPaths.map(path => [...path, 'examples', 'someExample']),
188-
...headerObjectPaths.map(path => [...path, 'examples', 'someExample']),
188+
...headerObjectPathsWithRecursionFirstLevel.map(path => [...path, 'examples', 'someExample']),
189189
...mediaTypeObjectPaths.map(path => [...path, 'examples', 'someExample']),
190190
]
191191

0 commit comments

Comments
 (0)