@accelbyte/codegen 3.0.3 → 3.0.5

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.
@@ -1130,7 +1130,7 @@ const templateMethod = ({
1130
1130
  const url = ${newPath} ${formPayloadString} ${isFileUpload ? "\n// TODO file upload not implemented" : ""}
1131
1131
  const resultPromise = this.axiosInstance.${httpMethod}(url, ${dataPayload})
1132
1132
 
1133
- ${` return this.isValidationEnabled ? Validate.responseType(() => resultPromise, ${resolvedResponseClassValidated}, '${resolvedResponseClassValidated}') : Validate.unsafeResponse(() => resultPromise)`}
1133
+ ${` return Validate.validateOrReturnResponse(this.isValidationEnabled, () => resultPromise, ${resolvedResponseClassValidated}, '${resolvedResponseClassValidated}')`}
1134
1134
  }
1135
1135
  `;
1136
1136
  if (!isGuardInvoked) {