camel-kamelets
camel-kamelets copied to clipboard
Add a `id_str` field to Twitter related Kamelets for the generated CloudEvents
Since Twitter IDs as unsigned 64-bit integer values that cannot be handled fully by JavaScript, the exposed id field as integer can not be sealed with JavaScript. Twitter has a id_str field in its REST API, however Twitter4J does not add this field to its response.
Also, since Twitter4J seems to refuse to add this field, it would be great if Camel could re-add it to its components. I will create an issue in the Camel JIRA for this, but for now, a quick fix for kamelets would be to add the long value as a string with key "id_str" in the kamelets, too, until the component update bubbles up.