fix(events): Add resourceTypeSlug to RoleEvent deserialization#1638
fix(events): Add resourceTypeSlug to RoleEvent deserialization#1638devin-ai-integration[bot] wants to merge 1 commit into
Conversation
Original prompt from heather
|
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
f43c109 to
54d636b
Compare
Description
The
RoleEventandRoleEventResponseinterfaces were missing theresourceTypeSlug/resource_type_slugfield, and the deserializer was hardcodingobject: 'role'instead of reading it from the response. This causedresource_type_slugto be silently dropped during event deserialization forrole.created,role.updated, androle.deletedevents.Changes:
RoleEventResponse: addresource_type_slug: stringRoleEvent: addresourceTypeSlug: stringdeserializeRoleEvent: mapresource_type_slug→resourceTypeSlugand userole.objectinstead of hardcoded'role'Documentation
Does this require changes to the WorkOS Docs? E.g. the API Reference or code snippets need updates.
Link to Devin session: https://app.devin.ai/sessions/8f83ad1ad4f94e1a9705a4c028f35786
Requested by: @csrbarber