[SPIKE] Event oneOf discriminated union (INTER-2457) - #224
Conversation
INTER-2457. Regenerated Event as a oneOf wrapper to show the runtime break. Do not merge.
|
Following files do not match corresponding templates: To fix this warning, make sure template files are up-to-date, and generate files by running the following command: pip install uv && uv sync --only-group dev && bash ./generate.sh |
pnpm exec changesetto create a changeset. |
Wrong commit message format detectedWe use Semantic Commit Messages in our project.
Run the next command in the project root to activate local hooks: sh ./install_hooks.shMore info you can find in job logs Commitlint ErrorsCommit: 0a83a8d `chore: SPIKE Event oneOf discriminated union INTER-2457. Regenerated Event as a oneOf wrapper to show the runtime break. Do not merge.`
|
EventoneOf (EventDevice|EventEdge, discriminatorsource).Break: runtime
Eventis a oneOf wrapper.event.identificationraisesAttributeError.Event.from_jsonalso raises ifsourceis missing (existing payloads and sealed events).actual_instance: fingerprint_server_sdk/models/event.pyfrom_jsonrequiressource: event.pyget_event: fingerprint_api.pyKnown issue: CI will fail
Tests and examples that read
event.identificationare expected to fail. That is the spike.