chore: update response original request version (#4555)

Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com>
This commit is contained in:
Nivedin
2024-11-25 18:34:03 +05:30
committed by GitHub
parent 2721fd9bf6
commit b81cf87fd6
8 changed files with 85 additions and 15 deletions

View File

@@ -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,

View File

@@ -47,7 +47,7 @@ const t = useI18n()
const props = withDefaults(
defineProps<{
show: boolean
loadingState: boolean
loadingState?: boolean
modelValue?: string
}>(),
{

View File

@@ -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"

View File

@@ -812,7 +812,7 @@ const convertPathToHoppReqs = (
requestVariables: parseOpenAPIVariables(
(info.parameters as OpenAPIParamsType[] | undefined) ?? []
),
v: "1",
v: "2",
}),
}),
metadata: {

View File

@@ -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]