Skip to content

Commit 352bdd7

Browse files
Alan-ChaErikWittern
authored andcommitted
Added full link param support
Signed-off-by: Alan Cha <[email protected]>
1 parent fa3cca1 commit 352bdd7

13 files changed

+580
-157
lines changed

packages/oasgraph/lib/oas_3_tools.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/oasgraph/lib/oas_3_tools.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/oasgraph/lib/preprocessor.js

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/oasgraph/lib/preprocessor.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/oasgraph/lib/resolver_builder.js

Lines changed: 157 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/oasgraph/lib/resolver_builder.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/oasgraph/src/oas_3_tools.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ export type RequestSchemaAndNames = {
5353
export type ResponseSchemaAndNames = {
5454
responseContentType?: string,
5555
responseSchema?: SchemaObject | ReferenceObject,
56-
responseSchemaNames?: SchemaNames
56+
responseSchemaNames?: SchemaNames,
57+
statusCode?: string
5758
}
5859

5960
const logHttp = debug('http')
@@ -635,7 +636,8 @@ export function getResponseSchemaAndNames (
635636
return {
636637
responseContentType,
637638
responseSchema,
638-
responseSchemaNames
639+
responseSchemaNames,
640+
statusCode
639641
}
640642
} else {
641643

packages/oasgraph/src/preprocessor.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export function preprocessOas (
9090
}
9191

9292
// Response schema
93-
let { responseContentType, responseSchema, responseSchemaNames } = Oas3Tools.getResponseSchemaAndNames(
93+
let { responseContentType, responseSchema, responseSchemaNames, statusCode } = Oas3Tools.getResponseSchemaAndNames(
9494
path, method, oas, data, options)
9595

9696
if (!responseSchema || typeof responseSchema !== 'object') {
@@ -148,7 +148,8 @@ export function preprocessOas (
148148
securityRequirements,
149149
servers,
150150
inViewer,
151-
isMutation
151+
isMutation,
152+
statusCode
152153
}
153154
data.operations[operationId] = operation
154155
}

0 commit comments

Comments
 (0)