tablesmit / protobuf-net

Automatically exported from code.google.com/p/protobuf-net
Other
0 stars 1 forks source link

Suffix missing for required non-primitive properties #439

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a protobuf file with the following definition:
package school;

message Name
{
    required string first_name  = 1;
    required string last_name = 2;  
}

message Student
{
    required Name student_name = 1;
    optional string course = 2;
    required bool has_paid_dues = 3;
}

2. Generate C# types with suffix for type name. Let's assume we required "_SUF" 
as suffix.

What is the expected output? What do you see instead?
The Student and StudentName types are correctly generated as Student_SUF and 
StudentName_SUF. But the student_name property in Student type still uses 
StudentName instead of StudentName_SUF.

What version of the product are you using? On what operating system?
Latest version.

Please provide any additional information below.

Original issue reported on code.google.com by shujaat...@gmail.com on 12 Apr 2014 at 3:49

Attachments:

GoogleCodeExporter commented 8 years ago
Exactly how are you doing step 2, i.e. how are are you specifying the suffix 
required?

Original comment by marc.gravell on 12 Apr 2014 at 4:19

GoogleCodeExporter commented 8 years ago
I have the exact Protogen command @ work. I should provide this on monday.

Original comment by shujaat...@gmail.com on 12 Apr 2014 at 4:52