@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.
@@ -1107,7 +1107,7 @@ const templateMethod = ({
1107
1107
  const url = ${newPath} ${formPayloadString} ${isFileUpload ? "\n// TODO file upload not implemented" : ""}
1108
1108
  const resultPromise = this.axiosInstance.${httpMethod}(url, ${dataPayload})
1109
1109
 
1110
- ${` return this.isValidationEnabled ? Validate.responseType(() => resultPromise, ${resolvedResponseClassValidated}, '${resolvedResponseClassValidated}') : Validate.unsafeResponse(() => resultPromise)`}
1110
+ ${` return Validate.validateOrReturnResponse(this.isValidationEnabled, () => resultPromise, ${resolvedResponseClassValidated}, '${resolvedResponseClassValidated}')`}
1111
1111
  }
1112
1112
  `;
1113
1113
  if (!isGuardInvoked) {