thankful-gpu-70135
12/26/2023, 12:56 AMuser_id and not userId https://www.rudderstack.com/docs/event-spec/standard-events/identify/#user-id
See the Ruby SDK which says to use `user_id`:
https://github.com/rudderlabs/rudder-sdk-ruby/blob/6b37129e421b2a865f0de9547086b4fc915b104a/lib/rudder/analytics/client.rb#L57C30-L57C30millions-activity-52391
12/26/2023, 12:56 AMthankful-gpu-70135
12/26/2023, 12:57 AMid
https://www.rudderstack.com/docs/event-spec/standard-events/identify/#identify-traitsgentle-petabyte-80785
12/26/2023, 11:11 AMthankful-gpu-70135
12/26/2023, 4:38 PMmillions-activity-52391
12/26/2023, 4:40 PMthankful-gpu-70135
12/26/2023, 7:17 PMlastName but it should be last_name?
These docs are specific about the naming of common fields. If there is an exception for Ruby I want to know so we can properly name the events. Otherwise the mappings won't work with what rudderstack expects to translate the common fields to the correct fields for destinations.
https://www.rudderstack.com/docs/event-spec/standard-events/common-fields/
Another example: For the creation date of an account, should it be passed in to the ruby sdk as createdAt or created_at? Are both supported? If not, which is the correct one?
Again the reason for this confusion is the way the common fields docs are worded and teh lack of specific guidance in the Ruby SDK:
https://www.rudderstack.com/docs/sources/event-streams/sdks/rudderstack-ruby-sdk/
(It only clarifies user id as user_id because it's specifically shown in the examples)gentle-petabyte-80785
12/26/2023, 7:23 PMthankful-gpu-70135
12/26/2023, 7:27 PMlastName ) in any sdk (including Ruby SDK) it works to be translated.
2. Ruby SDK works with snake casing for the automatic translation. so both last_name and lastName works to be translated
3. Update the docs in common traits and the ruby SDK to mention this 🙂thankful-gpu-70135
12/26/2023, 7:27 PMlastName ? does it get translated correctly as a recognized common trait even if other keys are passed in with snake casing (like user_id)?gentle-petabyte-80785
12/26/2023, 7:31 PMuserId is not present then user_id is considered as a fallback.
And that's the strategy for common fields required in identify so I'd assume this would be the same for lastName.
One should refer SDK docs for the recommended naming in its current form.thankful-gpu-70135
12/26/2023, 7:32 PMthankful-gpu-70135
12/26/2023, 7:32 PMthankful-gpu-70135
12/26/2023, 7:33 PMuser_id but don't see any special handling for other traits. So my assumption is they are passed through as is (so lastName passed in, is passed along as lastName to the Rudderstack pipeline) and then is CORRECTLY translated for the destinations.
I need to know if this is correct.gentle-petabyte-80785
12/26/2023, 7:34 PMmillions-activity-52391
12/27/2023, 3:09 PM