You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Create a new chat roomFuture<NewResponse> new(NewRequest req) async {
Request request =Request(
service:'chat',
endpoint:'New',
body: req.toJson(),
);
try {
Response res =await _client.call(request);
if (isError(res.body)) {
final err =Merr(res.toJson());
returnNewResponse.Merr(body: err.b);
}
returnNewResponseData.fromJson(res.body);
} catch (e) {
throwException(e);
}
}
the 'new' keyword, is a reserved optional keyword in dart and the compiler get confused about it.
we need to follow a standard for naming things in protobuf to avoid any conflicts (recommended), or we can handle these cases in every generator accordingly by prefixing the conflicted names with something which will lead to inconsistency between M3O clients.
The text was updated successfully, but these errors were encountered:
just one for now .... coming form chat service
we can use the crud standard or we could just name it ChatNew for example i.e the service name first then the verb ... or any standard that prevent these potential conflicts .
a new case, similar to #382 accrued when running the dart generate workflow https://github.com/GWT-M3O-TEST/GWT-m3o-dart/runs/5320273604?check_suite_focus=true#step:18:16 .
the keyword 'New' in the protobuf file of the chat service
services/chat/proto/chat.proto
Line 7 in a2b7981
will be converted into
the 'new' keyword, is a reserved optional keyword in dart and the compiler get confused about it.
we need to follow a standard for naming things in protobuf to avoid any conflicts (recommended), or we can handle these cases in every generator accordingly by prefixing the conflicted names with something which will lead to inconsistency between M3O clients.
The text was updated successfully, but these errors were encountered: