You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RDKEMW-26413 : Support generic JSON intents - #117
The reason will be displayed to describe this comment to others. Learn more.
Copilot review overview
🟡 Changes recommended
The public API introduces unsafe ABI breaks and exposes a prohibited implementation dependency while generator-owned artifacts lose their ownership markers.
Public Firebolt headers must not expose nlohmann::json. Making this implementation library part of the installed API couples every consumer to its headers and ABI; the new PUBLIC CMake dependency does not restore the public/JSON-layer boundary. Represent generic payloads with a Firebolt-owned public type (or serialized JSON) and convert to nlohmann::json inside the implementation/adapter layer.
Add malformed response and invalid event tests
src/json_types/actions.h:40
The deserialization contract changed, but the Actions tests still have no malformed-response case for the envelope validation here (for example, missing intentId or a non-unsigned ID). Add unit and component negative tests that assert the getter fails and an invalid event does not invoke its callback, matching the repository's getter/event pairing rules.
Add malformed wire-response coverage for intent deserialization
src/json_types/actions.h:40
The new deserializer's malformed-wire-response path is not covered: the transport-error test returns before fromJson() runs, and current tests only provide valid envelopes. Add an Actions.intent unit test with a missing required field or invalid intentId type and assert Error::InvalidParams, matching getter coverage elsewhere in the repository.
The reason will be displayed to describe this comment to others. Learn more.
Copilot review overview
🟡 Changes recommended
Generated files are edited directly, JSON conversion violates layer boundaries, validation coverage is incomplete, and the TextToSpeech casing claim conflicts with the protocol.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
None yet
3 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.