Skip to content

Commit

Permalink
fix: submodel metadata deser. mismatch 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusmolina-iese committed Nov 4, 2024
1 parent 5b4f3b4 commit e1610da
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,10 @@ public ApiResponse<Submodel> getSubmodelByIdMetadataWithHttpInfoNoUrlEncoding(St
Submodel deserializedSubmodel = localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<Submodel>() {
});

if (deserializedSubmodel != null && deserializedSubmodel.getSubmodelElements() == null)
deserializedSubmodel.setSubmodelElements(Collections.emptyList());
if (deserializedSubmodel != null && deserializedSubmodel.getSubmodelElements() != null && deserializedSubmodel.getSubmodelElements().isEmpty())
deserializedSubmodel.setSubmodelElements(null);

return new ApiResponse<Submodel>(localVarResponse.statusCode(), localVarResponse.headers().map(), deserializedSubmodel);
return new ApiResponse<>(localVarResponse.statusCode(), localVarResponse.headers().map(), deserializedSubmodel);
} finally {
}
} catch (IOException e) {
Expand Down

0 comments on commit e1610da

Please sign in to comment.