Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
[
{
"entity": "Individual",
"displayFields": [
{
"fieldKey": "locality",
"jsonPath": "Individual.address[0].locality.code",
"mandatory": "false"
},
Comment on lines +6 to +9
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Boolean flags are stored as strings – this will break strict JSON consumers

Fields mandatory, isList, and additionalField are declared as "false" / "true" (strings) instead of false / true.

Example fix:

-        "mandatory": "false"
+        "mandatory": false

Search & replace throughout the file – otherwise schema validation and any boolean logic will fail.

Also applies to: 16-19, 21-30, 42-46, 58-62, 68-72, 80-89

🤖 Prompt for AI Agents
In mdms/HCM/AdminConsole v0.4/Data/HCM-ADMIN-CONSOLE.DETAILS_RENDERER_CONFIG
around lines 6 to 9 and other specified ranges, boolean flags like "mandatory",
"isList", and "additionalField" are incorrectly set as strings "true"/"false".
Change these string values to proper boolean literals true/false without quotes
throughout the file to ensure correct JSON parsing and schema validation.

{
"fieldKey": "name",
"jsonPath": "Individual.name.givenName",
"mandatory": "true"
},
{
"fieldKey": "gender",
"jsonPath": "Individual.gender",
"mandatory": "false"
},
{
"fieldKey": "identifierId",
"jsonPath": "Individual.identifiers[0].identifierId",
"mandatory": "false"
},
{
"isList": "true",
"fieldKey": "identifierType",
"jsonPath": "Individual.identifiers[0].identifierType",
"mandatory": "false"
},
{
"fieldKey": "mobileNumber",
"jsonPath": "Individual.mobileNumber",
"mandatory": "false"
}
]
},
{
"entity": "Task",
"displayFields": [
{
"fieldKey": "doseIndex",
"jsonPath": "Task.additionalFields",
"mandatory": "false",
"additionalField": "true"
},
{
"fieldKey": "status",
"jsonPath": "Task.status",
"mandatory": "false"
},
{
"fieldKey": "createdTime",
"jsonPath": "Task.auditDetails.createdTime",
"mandatory": "false"
},
{
"fieldKey": "cycleIndex",
"jsonPath": "Task.additionalFields",
"mandatory": "false",
"additionalField": "true"
}
]
},
{
"entity": "Household",
"displayFields": [
{
"fieldKey": "locality",
"jsonPath": "Household.address.locality.code",
"mandatory": "false"
},
{
"fieldKey": "memberCount",
"jsonPath": "Household.memberCount",
"mandatory": "false"
},
{
"fieldKey": "pregnantWomenCount",
"jsonPath": "Household.additionalFields",
"mandatory": "false",
"additionalField": "true"
},
{
"fieldKey": "childrenCount",
"jsonPath": "Household.additionalFields",
"mandatory": "false",
"additionalField": "true"
}
]
}
]
Loading