Skip to content

Commit 50dd007

Browse files
committed
fix: add format when using extractResponseBody
1 parent ccd1c62 commit 50dd007

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)