infobloxopen / protoc-gen-gorm

A protobuf compiler plugin designed to generate GORM models and APIs for simple object persistence tasks.
Apache License 2.0
549 stars 162 forks source link

feat: add support for proto3 optional fields #250

Closed chinmayb closed 1 year ago

chinmayb commented 1 year ago

This feature makes the field a pointer types if optional field is specified.

Output of make build-user-local after using optional in user.proto

image

P.S: needs protoc version >=v3.15.0