Skip to content

Commit

Permalink
Merge pull request mosip#679 from pg-techno123/develop
Browse files Browse the repository at this point in the history
Swagger cleanup
  • Loading branch information
mohanachandran-s authored Nov 14, 2024
2 parents c63dce6 + b79b93f commit ef8ce0c
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,16 +247,8 @@ public String generateResidentData( PersonaRequestDto residentRequestDto, String
for (ResidentModel r : lst) {
Path tempPath = Path.of(tmpDir, r.getId() + ".json");
r.setPath(tempPath.toString());

String jsonStr = r.toJSONString();


String personaAbsPath = tempPath.toFile().getAbsolutePath();
VariableManager.setVariableValue(contextKey, personaAbsPath, jsonStr);

// Write to a file only when debug enabled
// To Do --------- CommonUtil.write(tempPath, jsonStr.getBytes());

CommonUtil.write(tempPath, jsonStr.getBytes());
JSONObject id = new JSONObject();
id.put("id", r.getId());
id.put("path", tempPath.toFile().getAbsolutePath());
Expand Down

0 comments on commit ef8ce0c

Please sign in to comment.