-
Notifications
You must be signed in to change notification settings - Fork 47
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
Conversation
brayns/common/types.h
Outdated
{ | ||
std::string methodName; | ||
std::string methodDescription; | ||
std::string paramName{}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove {}.
brayns/common/types.h
Outdated
std::string methodName; | ||
std::string methodDescription; | ||
std::string paramName{}; | ||
std::string paramDescription{}; |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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}}; |
There was a problem hiding this comment.
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.
ping |
No description provided.