@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.
|
@@ -781,13 +781,13 @@ const templateMethod = ({
|
|
|
781
781
|
const url = ${newPath} ${formPayloadString} ${isFileUpload ? "\n// TODO file upload not implemented" : ""}
|
|
782
782
|
const resultPromise = this.axiosInstance.${httpMethod}(url, ${dataPayload})
|
|
783
783
|
|
|
784
|
-
${httpMethod === "get" ? ` const res = () => Validate.responseType(() => resultPromise, ${resolvedResponseClassValidated})
|
|
784
|
+
${httpMethod === "get" ? ` const res = () => Validate.responseType(() => resultPromise, ${resolvedResponseClassValidated}, '${resolvedResponseClassValidated}')
|
|
785
785
|
|
|
786
786
|
if (!this.cache) {
|
|
787
787
|
return SdkCache.withoutCache(res)
|
|
788
788
|
}
|
|
789
789
|
const cacheKey = url + CodeGenUtil.hashCode(JSON.stringify({ params }))
|
|
790
|
-
return SdkCache.withCache(cacheKey, res)` : ""}${["post", "put", "patch", "delete"].includes(httpMethod) ? ` return Validate.responseType(() => resultPromise, ${resolvedResponseClassValidated})` : ""}
|
|
790
|
+
return SdkCache.withCache(cacheKey, res)` : ""}${["post", "put", "patch", "delete"].includes(httpMethod) ? ` return Validate.responseType(() => resultPromise, ${resolvedResponseClassValidated}, '${resolvedResponseClassValidated}')` : ""}
|
|
791
791
|
}
|
|
792
792
|
`;
|
|
793
793
|
if (!isGuardInvoked) {
|