Remove camelCase conversion in DF methods [PLT-99360]#327
Open
Sarath1018 wants to merge 4 commits intomainfrom
Open
Remove camelCase conversion in DF methods [PLT-99360]#327Sarath1018 wants to merge 4 commits intomainfrom
Sarath1018 wants to merge 4 commits intomainfrom
Conversation
b9f9ce9 to
ff1089c
Compare
ff1089c to
a06c5a7
Compare
a06c5a7 to
ebbd3b7
Compare
ninja-shreyash
previously approved these changes
Mar 27, 2026
e261c7d to
385f5f3
Compare
385f5f3 to
d1b798b
Compare
maninder-uipath
approved these changes
Apr 1, 2026
f550c0c to
b0849a3
Compare
|
swati354
reviewed
Apr 2, 2026
Collaborator
There was a problem hiding this comment.
do we need to update here
If yes, the mock might need updating?
Comment on lines
+432
to
+433
| .filter((r: any) => r.Id) | ||
| .map((r: any) => r.Id); |
Collaborator
There was a problem hiding this comment.
nit : now we could just do this right -
.filter((r) => r.Id)
.map((r) => r.Id);
swati354
approved these changes
Apr 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Remove camelCase conversion in Data Fabric entity record methods PLT-99360
Background
The Data Fabric API returns entity record fields in PascalCase (e.g.,
Id,CreateTime,RecordOwner). The SDK was previously converting all response keys to camelCase viapascalToCamelCaseKeys(), which mangled user-defined field names — a field namedRecordOwnerin the schema would silently becomerecordOwnerin the SDK response.Per a request from the Data Fabric team, the SDK now returns record data exactly as the API sends it, with no case conversion.
Changes
pascalToCamelCaseKeys()andEntityRecordMaptransformation removed from the following methods — all now returnresponse.dataas-is:getRecordByIdinsertRecordByIdupdateRecordByIduploadAttachmentinsertRecordsByIdsuccessRecordsto camelCaseupdateRecordsByIdsuccessRecordsto camelCasedeleteRecordsByIddownloadAttachmentanddeleteAttachmentreturn binary/status responses with no record fields — no change needed.EntityRecord.idrenamed toEntityRecord.Idto match the actual API response key.JSDoc examples updated across
entities.models.tsandentities.tsto userecord.Idinstead ofrecord.id.Tests updated:
Id)record.Id,record.RecordOwner{ Id: id }, removedr.Id || r.idfallback to justr.IdcreateMockEntityRecordsoverride usesIdinstead ofidSDK response example (after change)
{ "Id": "A378D039-D312-F111-832E-000D3A58D4AA", "CreatedBy": "5C8E90E3-7E35-45F5-B3C6-1A212A642246", "CreateTime": "2026-02-26T05:23:04.7946618+00:00", "UpdatedBy": "5C8E90E3-7E35-45F5-B3C6-1A212A642246", "UpdateTime": "2026-02-26T05:25:35.5379904+00:00", "RecordOwner": "5C8E90E3-7E35-45F5-B3C6-1A212A642246", "SarathReddy": "489F068F-D312-F111-832E-000D3A58D4AA" }