Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apis/PackageManager/IAppPackageManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ namespace Exchange {

enum class FailReason : uint8_t {
NONE, // XXX: Not in HLA
GENERAL_FAILURE,
Copy link

Copilot AI Jan 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The enum value GENERAL_FAILURE is missing the required @text annotation. According to the Enum Naming convention, enum values in interfaces marked with @JSON should include @text annotations to define their JSON RPC representation.

For example, similar patterns can be seen in:

  • apis/FirmwareUpdate/IFirmwareUpdate.h:30 - VALIDATION_FAILED = 1 /* @text VALIDATION_FAILED */
  • apis/USBMassStorage/IUSBMassStorage.h:35 - READ_ONLY = 1 /* @text READ_ONLY */

The @text annotation should be added in the format: GENERAL_FAILURE /* @text GENERAL_FAILURE */,

Refer: https://github.com/rdkcentral/entservices-apis/blob/develop/.github/instructions/api_headers.instructions.md#enum-naming

Copilot generated this review using guidance from repository custom instructions.
SIGNATURE_VERIFICATION_FAILURE,
PACKAGE_MISMATCH_FAILURE,
INVALID_METADATA_FAILURE,
Expand Down
Loading