We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'll give a simple example where we were forced to change message names, in order to avoid import clashes.
package valueobjects; // Message representing postal address value object message PostalAddress { string street = 1; string city = 2; ... }
package resources; import "valueobjects.proto"; // Message representing postal address entity message PostalAddress { string id= 1; valueobjects.PostalAddress postal_address = 2; ... }
when complied we get
import { PostalAddress } from "../../../../valueobjects_pb.js"; /** * Postal address message. * * @generated from message resources.v1.PostalAddress */ export const PostalAddress = proto3.makeMessageType( "resources.v1.PostalAddress", () => [ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "postal_address", kind: "message", T: PostalAddress }, ], );
which fails with error
Identifier 'PostalAddress' has already been declared
The above messages compile just fine in go .
go
Originally posted by @SpareShade in #455 (comment)
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
I'll give a simple example where we were forced to change message names, in order to avoid import clashes.
when complied we get
which fails with error
The above messages compile just fine in
go
.Originally posted by @SpareShade in #455 (comment)
The text was updated successfully, but these errors were encountered: