chore: update response original request version (#4555)
Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com>
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
<LensesResponseBodyRenderer
|
||||
v-if="!loading && hasResponse"
|
||||
v-model:document="doc"
|
||||
:is-editable="false"
|
||||
@save-as-example="saveAsExample"
|
||||
/>
|
||||
</div>
|
||||
@@ -84,7 +85,7 @@ const onSaveAsExample = () => {
|
||||
} = response.req
|
||||
|
||||
const originalRequest: HoppRESTResponseOriginalRequest = {
|
||||
v: "1",
|
||||
v: "2",
|
||||
method,
|
||||
endpoint,
|
||||
headers,
|
||||
|
||||
@@ -47,7 +47,7 @@ const t = useI18n()
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
show: boolean
|
||||
loadingState: boolean
|
||||
loadingState?: boolean
|
||||
modelValue?: string
|
||||
}>(),
|
||||
{
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
:info="`${maybeHeaders.length}`"
|
||||
class="flex flex-1 flex-col"
|
||||
>
|
||||
<LensesHeadersRenderer v-model="maybeHeaders" />
|
||||
<LensesHeadersRenderer v-model="maybeHeaders" :is-editable="false" />
|
||||
</HoppSmartTab>
|
||||
<HoppSmartTab
|
||||
v-if="!isEditable"
|
||||
|
||||
@@ -812,7 +812,7 @@ const convertPathToHoppReqs = (
|
||||
requestVariables: parseOpenAPIVariables(
|
||||
(info.parameters as OpenAPIParamsType[] | undefined) ?? []
|
||||
),
|
||||
v: "1",
|
||||
v: "2",
|
||||
}),
|
||||
}),
|
||||
metadata: {
|
||||
|
||||
@@ -30,7 +30,7 @@ import {
|
||||
import { stringArrayJoin } from "~/helpers/functional/array"
|
||||
import { PMRawLanguage } from "~/types/pm-coll-exts"
|
||||
import { IMPORTER_INVALID_FILE_FORMAT } from "."
|
||||
import { HoppRESTRequestResponses } from "@hoppscotch/data/dist/rest/v/8"
|
||||
import { HoppRESTRequestResponses } from "@hoppscotch/data"
|
||||
|
||||
const safeParseJSON = (jsonStr: string) => O.tryCatch(() => JSON.parse(jsonStr))
|
||||
|
||||
@@ -177,7 +177,7 @@ const getHoppResponses = (
|
||||
requestVariables: getHoppReqVariables(
|
||||
response.originalRequest?.url.variables ?? null
|
||||
),
|
||||
v: "1" as const,
|
||||
v: "2" as const,
|
||||
},
|
||||
}
|
||||
return [response.name, res]
|
||||
|
||||
Reference in New Issue
Block a user