summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjacobkeeler <jacob.keeler@livioradio.com>2020-11-17 16:31:39 -0500
committerjacobkeeler <jacob.keeler@livioradio.com>2020-11-17 16:31:39 -0500
commitb348ac90d6033b686d93dbfb227cc4fb1f868d8e (patch)
tree0acb618c08ef9d63e1b12388a5540c09f20689bf
parent9dc3c070c58a644bb54b08808aa0a39627e0cf09 (diff)
downloadsdl_core-fix/gpcd_consumer_friendly_messages.tar.gz
Re-add messages field in policy table jsonfix/gpcd_consumer_friendly_messages
consumer_friendly_messages.messages was being omitted from the policy table json rather than just the snapshot, this reintroduces this field (this field is still cleared out when generating the snapshot in `CheckSnapshotInitialization`)
-rw-r--r--src/components/policy/policy_external/src/policy_table/types.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/components/policy/policy_external/src/policy_table/types.cc b/src/components/policy/policy_external/src/policy_table/types.cc
index 243cf98066..cb7f2bdd9d 100644
--- a/src/components/policy/policy_external/src/policy_table/types.cc
+++ b/src/components/policy/policy_external/src/policy_table/types.cc
@@ -1357,8 +1357,7 @@ ConsumerFriendlyMessages::ConsumerFriendlyMessages(const Json::Value* value__)
Json::Value ConsumerFriendlyMessages::ToJsonValue() const {
Json::Value result__(Json::objectValue);
impl::WriteJsonField("version", version, &result__);
- // According to requirements, it is not necessary to provide this to PTS
- // impl::WriteJsonField("messages", messages, &result__);
+ impl::WriteJsonField("messages", messages, &result__);
return result__;
}