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

Add property map to ActionInterface to ease JSON schema generation for plugin actions #493

Merged
merged 2 commits into from
Aug 8, 2018

Conversation

tribal-tec
Copy link
Contributor

No description provided.

@tribal-tec tribal-tec requested review from favreau and karjonas August 6, 2018 14:32
{
std::string methodName;
std::string methodDescription;
std::string paramName{};
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove {}.

std::string methodName;
std::string methodDescription;
std::string paramName{};
std::string paramDescription{};
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove {}.

}

void _handleStreamTo()
{
RpcDocumentation doc{"Stream to a displawall", "param",
"Stream parameters"};
const RpcDescription desc{METHOD_STREAM_TO, "Stream to a displawall",
Copy link
Contributor

Choose a reason for hiding this comment

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

displa(y)wall :)

return Response{to_json(action(params))};
}
return Response{
Response::Error{"from_json for " + name + " failed", -42}};
Copy link
Contributor

Choose a reason for hiding this comment

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

If -42 is an error code than it should have a proper define somewhere.

@tribal-tec
Copy link
Contributor Author

ping

@tribal-tec tribal-tec merged commit 14d305f into BlueBrain:master Aug 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants