@accelbyte/codegen 1.0.0-beta.11 → 1.0.0-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -758,13 +758,13 @@ const templateMethod = ({
|
|
|
758
758
|
const url = ${newPath} ${formPayloadString} ${isFileUpload ? "\n// TODO file upload not implemented" : ""}
|
|
759
759
|
const resultPromise = this.axiosInstance.${httpMethod}(url, ${dataPayload})
|
|
760
760
|
|
|
761
|
-
${httpMethod === "get" ? ` const res = () => Validate.responseType(() => resultPromise, ${resolvedResponseClassValidated})
|
|
761
|
+
${httpMethod === "get" ? ` const res = () => Validate.responseType(() => resultPromise, ${resolvedResponseClassValidated}, '${resolvedResponseClassValidated}')
|
|
762
762
|
|
|
763
763
|
if (!this.cache) {
|
|
764
764
|
return SdkCache.withoutCache(res)
|
|
765
765
|
}
|
|
766
766
|
const cacheKey = url + CodeGenUtil.hashCode(JSON.stringify({ params }))
|
|
767
|
-
return SdkCache.withCache(cacheKey, res)` : ""}${["post", "put", "patch", "delete"].includes(httpMethod) ? ` return Validate.responseType(() => resultPromise, ${resolvedResponseClassValidated})` : ""}
|
|
767
|
+
return SdkCache.withCache(cacheKey, res)` : ""}${["post", "put", "patch", "delete"].includes(httpMethod) ? ` return Validate.responseType(() => resultPromise, ${resolvedResponseClassValidated}, '${resolvedResponseClassValidated}')` : ""}
|
|
768
768
|
}
|
|
769
769
|
`;
|
|
770
770
|
if (!isGuardInvoked) {
|