Title: Event metadata validation is too strict · Issue #286 · intercom/python-intercom · GitHub
Open Graph Title: Event metadata validation is too strict · Issue #286 · intercom/python-intercom
X Title: Event metadata validation is too strict · Issue #286 · intercom/python-intercom
Description: CreateDataEventRequest models (CreateDataEventRequestWithId, CreateDataEventRequestWithUserId, CreateDataEventRequestWithEmail) only accept string metadata, conflicting with Intercom’s documented metadata types (strings, numbers, Unix ti...
Open Graph Description: CreateDataEventRequest models (CreateDataEventRequestWithId, CreateDataEventRequestWithUserId, CreateDataEventRequestWithEmail) only accept string metadata, conflicting with Intercom’s documented m...
X Description: CreateDataEventRequest models (CreateDataEventRequestWithId, CreateDataEventRequestWithUserId, CreateDataEventRequestWithEmail) only accept string metadata, conflicting with Intercom’s documented m...
Opengraph URL: https://github.com/intercom/python-intercom/issues/286
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Event metadata validation is too strict","articleBody":"`CreateDataEventRequest` models (`CreateDataEventRequestWithId`, `CreateDataEventRequestWithUserId`, `CreateDataEventRequestWithEmail`) only accept string metadata, conflicting with Intercom’s documented metadata types (strings, numbers, Unix timestamps, rich links, monetary amounts).\n\n### Steps to reproduce\n\n1. Instantiate any variant with non-string metadata:\n\n```py\nfrom intercom.types import CreateDataEventRequestWithUserId\n\nCreateDataEventRequestWithUserId(\n user_id=\"123\",\n event_name=\"test-event\",\n created_at=1671028894,\n metadata={\"load\": 3.67},\n)\n```\n\n2. Observe `ValidationError` because metadata.load is not a string.\n\n### Expected behaviour\n\nAllow every metadata type listed at https://developers.intercom.com/docs/references/rest-api/api.intercom.io/data-events/createdataevent.\n\n### Actual behaviour\n\nValidation forces all metadata values to be plain strings.\n\n### Suggested Fix\n\nRelax the metadata value type in all `CreateDataEventRequest*` models (e.g., use `typing.Any` or a union covering the documented types) so the SDK aligns with Intercom’s API specification.","author":{"url":"https://github.com/jpvanhal","@type":"Person","name":"jpvanhal"},"datePublished":"2025-11-19T09:47:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/286/python-intercom/issues/286"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c944489b-fac8-4f0b-f280-3511f4712a16 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 82DE:209676:2A2E10:36E921:697E59DF |
| html-safe-nonce | de33046d704a31324f9e6a9e6827e84c67fa85c73b4f2b5f6becc5c1cfe4b3b3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkRFOjIwOTY3NjoyQTJFMTA6MzZFOTIxOjY5N0U1OURGIiwidmlzaXRvcl9pZCI6IjE1MDU5NjYzMTA1NzQ0MTQzMDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 554a86584cd94e57300e980c3f23aeb7377194644c646a74f03e5a9315dbc3c2 |
| hovercard-subject-tag | issue:3641924470 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/intercom/python-intercom/286/issue_layout |
| twitter:image | https://opengraph.githubassets.com/835a1c6e3fda9a1bcb1f5393f199627766cad1fff609b3a5ca55ef169932cf9e/intercom/python-intercom/issues/286 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/835a1c6e3fda9a1bcb1f5393f199627766cad1fff609b3a5ca55ef169932cf9e/intercom/python-intercom/issues/286 |
| og:image:alt | CreateDataEventRequest models (CreateDataEventRequestWithId, CreateDataEventRequestWithUserId, CreateDataEventRequestWithEmail) only accept string metadata, conflicting with Intercom’s documented m... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jpvanhal |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/intercom/python-intercom git https://github.com/intercom/python-intercom.git |
| octolytics-dimension-user_id | 6585 |
| octolytics-dimension-user_login | intercom |
| octolytics-dimension-repository_id | 3619880 |
| octolytics-dimension-repository_nwo | intercom/python-intercom |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3619880 |
| octolytics-dimension-repository_network_root_nwo | intercom/python-intercom |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width