Skip to content

Commit 6e6c863

Browse files
authored
Update report.ts
1 parent 8b101b2 commit 6e6c863

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/lib/report.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,9 @@ function getOpenapiResponseProperties(
329329
return
330330
}
331331

332-
return openapiEndpointDef.post.responses['200']?.content['application/json']
333-
?.schema?.properties
332+
const res = openapiEndpointDef.post.responses['200']
333+
if ('content' in res) return res.content['application/json']?.schema?.properties
334+
return
334335
}
335336

336337
function processParameters(

0 commit comments

Comments
 (0)