fix: schema generation issue on test runner (#4711)
fix: schema generation issue on test runner
This commit is contained in:
parent
135060bc4a
commit
e967b3361d
1 changed files with 5 additions and 0 deletions
|
|
@ -185,6 +185,11 @@ const response = computed(() => {
|
||||||
if (res?.type === "success" || res?.type === "fail") {
|
if (res?.type === "success" || res?.type === "fail") {
|
||||||
response = getResponseBodyText(res.body)
|
response = getResponseBodyText(res.body)
|
||||||
}
|
}
|
||||||
|
} else if (doc.type === "test-runner") {
|
||||||
|
const res = doc.request?.response
|
||||||
|
if (res?.type === "success" || res?.type === "fail") {
|
||||||
|
response = getResponseBodyText(res.body)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
const res = doc.response.body
|
const res = doc.response.body
|
||||||
response = res
|
response = res
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue