Skip to content

Commit 8bad1ae

Browse files
authored
Merge pull request #742 from TaopaiC/extract-response-format
fix: format option of requests when using extractResponseBody
2 parents c6c1b81 + 50dd007 commit 8bad1ae

File tree

3 files changed

+730
-0
lines changed

3 files changed

+730
-0
lines changed

src/schema-routes/schema-routes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,12 +729,14 @@ class SchemaRoutes {
729729
let successResponse = responseBodyInfo.success;
730730

731731
if (successResponse.schema && !successResponse.schema.$ref) {
732+
const contentKind = successResponse.schema.contentKind;
732733
const schema = this.getSchemaFromRequestType(successResponse.schema);
733734
successResponse.schema = this.schemaParserFabric.createParsedComponent({
734735
schema,
735736
typeName,
736737
schemaPath: [routeInfo.operationId],
737738
});
739+
successResponse.schema.contentKind = contentKind;
738740
successResponse.type = this.schemaParserFabric.getInlineParseContent({
739741
$ref: successResponse.schema.$ref,
740742
});

0 commit comments

Comments
 (0)