json casing on created in requestresponse#1792
Conversation
📝 WalkthroughWalkthroughAdds JSON serialization attribute Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/Authentication/Services/RequestSystemUserService.cs (1)
416-428: MissingCreatedfield inGetAgentRequestByGuidresponse mapping.This method constructs a new
AgentRequestSystemResponsebut omits theCreatedfield, whereasGetAgentRequestByPartyAndRequestId(line 513) andCheckUserAuthorizationAndGetAgentRequest(line 884) both include it. This inconsistency will result in different API responses depending on which endpoint is called.Proposed fix
return new AgentRequestSystemResponse() { Id = res.Id, IntegrationTitle = res.IntegrationTitle, ExternalRef = res.ExternalRef, SystemId = res.SystemId, PartyOrgNo = res.PartyOrgNo, AccessPackages = res.AccessPackages, Status = res.Status, + Created = res.Created, RedirectUrl = res.RedirectUrl, TimedOut = res.TimedOut };
|



Description
Related Issue(s)
Verification
Documentation
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.