Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INDY-2067: Validate parameters combinations in GET_TAA #1208

Merged
merged 5 commits into from
May 17, 2019

Conversation

skhoroshavin
Copy link
Member

Signed-off-by: Sergey Khoroshavin sergey.khoroshavin@dsr-corporation.com

Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
parameters = [p for p in parameters if p in operation]
if len(parameters) > 1:
raise InvalidClientRequest(identifier, req_id,
"GET_TXN_AUTHOR_AGREEMENT request "
Copy link
Contributor

Choose a reason for hiding this comment

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

I would add more detailed message about what combination is supported.
Something like either 1 or no input parameters can be passed.

Sergey Khoroshavin and others added 4 commits May 17, 2019 12:13
Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
Signed-off-by: Sergey Khoroshavin <sergey.khoroshavin@dsr-corporation.com>
@skhoroshavin skhoroshavin merged commit c509cf4 into hyperledger:master May 17, 2019
@skhoroshavin skhoroshavin deleted the indy-2067 branch May 17, 2019 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants