Skip to content

Commit

Permalink
Add GetAccountDetail validation
Browse files Browse the repository at this point in the history
Signed-off-by: kamilsa <[email protected]>
  • Loading branch information
kamilsa committed Dec 27, 2017
1 parent a4ba873 commit 3ad8e42
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions shared_model/validators/query_validator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,18 @@ namespace shared_model {
return reason;
}

ReasonsGroupType operator()
(const detail::PolymorphicWrapper<interface::GetAccountDetail> &qry)
const {
ReasonsGroupType reason;
reason.first = "GetAccountDetail";

validator_.validateAccountId(reason, qry->accountId());
validator_.validateAccountDetailKey(reason, qry->detail());

return reason;
}

ReasonsGroupType operator()(
const detail::PolymorphicWrapper<interface::GetRoles> &qry) const {
ReasonsGroupType reason;
Expand Down

0 comments on commit 3ad8e42

Please sign in to comment.