@@ -469,7 +469,7 @@ PetApi <- R6::R6Class(
469469
470470 if (httr :: status_code(resp ) > = 200 && httr :: status_code(resp ) < = 299 ) {
471471 deserializedRespObj <- tryCatch(
472- self $ apiClient $ deserialize(resp , " array[Pet]" , " package: petstore" ),
472+ self $ apiClient $ deserialize(resp , " array[Pet]" , loadNamespace( " petstore" ) ),
473473 error = function (e ){
474474 stop(" Failed to deserialize response" )
475475 }
@@ -521,7 +521,7 @@ PetApi <- R6::R6Class(
521521
522522 if (httr :: status_code(resp ) > = 200 && httr :: status_code(resp ) < = 299 ) {
523523 deserializedRespObj <- tryCatch(
524- self $ apiClient $ deserialize(resp , " array[Pet]" , " package: petstore" ),
524+ self $ apiClient $ deserialize(resp , " array[Pet]" , loadNamespace( " petstore" ) ),
525525 error = function (e ){
526526 stop(" Failed to deserialize response" )
527527 }
@@ -577,7 +577,7 @@ PetApi <- R6::R6Class(
577577
578578 if (httr :: status_code(resp ) > = 200 && httr :: status_code(resp ) < = 299 ) {
579579 deserializedRespObj <- tryCatch(
580- self $ apiClient $ deserialize(resp , " Pet" , " package: petstore" ),
580+ self $ apiClient $ deserialize(resp , " Pet" , loadNamespace( " petstore" ) ),
581581 error = function (e ){
582582 stop(" Failed to deserialize response" )
583583 }
@@ -739,7 +739,7 @@ PetApi <- R6::R6Class(
739739
740740 if (httr :: status_code(resp ) > = 200 && httr :: status_code(resp ) < = 299 ) {
741741 deserializedRespObj <- tryCatch(
742- self $ apiClient $ deserialize(resp , " ModelApiResponse" , " package: petstore" ),
742+ self $ apiClient $ deserialize(resp , " ModelApiResponse" , loadNamespace( " petstore" ) ),
743743 error = function (e ){
744744 stop(" Failed to deserialize response" )
745745 }
0 commit comments