protoc-gen-gorm icon indicating copy to clipboard operation
protoc-gen-gorm copied to clipboard

support "optional" fields in protoc3

Open stonerxs opened this issue 2 years ago • 2 comments

problem: is a protoc3 file that contains optional fields, but code generator protoc-gen-gorm hasn't been updated to support optional fields in protoc3. Please ask the owner of this code generator to support protoc3 optional.--gorm_out:

Now proto3 has begun to support the optional feature. When will protoc Gen Gorm start to support it?

stonerxs avatar Apr 12 '22 15:04 stonerxs

Same issue, but in their examples they do have optional fields.. https://github.com/infobloxopen/protoc-gen-gorm/blob/76a99c197982477b3e3a05aa4686c62cf0c7a3ee/example/user/user.proto#L56

RomanSter avatar Oct 18 '23 11:10 RomanSter

was solved, make sure you protoc is the right version https://github.com/infobloxopen/protoc-gen-gorm/pull/250

RomanSter avatar Dec 28 '23 09:12 RomanSter