File tree 2 files changed +7
-0
lines changed
protoc-gen-twirp_php/internal/gen
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
9
9
10
10
## [ Unreleased]
11
11
12
+ ### Added
13
+
14
+ - Support for proto3 field presence (optional fields)
15
+
12
16
13
17
## [ 0.7.4] - 2021-07-31
14
18
Original file line number Diff line number Diff line change 9
9
"github.com/twirphp/twirp/protoc-gen-twirp_php/templates/global"
10
10
"github.com/twirphp/twirp/protoc-gen-twirp_php/templates/service"
11
11
"google.golang.org/protobuf/compiler/protogen"
12
+ "google.golang.org/protobuf/types/pluginpb"
12
13
)
13
14
14
15
const twirpVersion = "v5.3.0"
@@ -30,6 +31,8 @@ type globalFileData struct {
30
31
31
32
// Generate is the main code generator.
32
33
func Generate (plugin * protogen.Plugin , version string ) error {
34
+ plugin .SupportedFeatures = uint64 (pluginpb .CodeGeneratorResponse_FEATURE_PROTO3_OPTIONAL )
35
+
33
36
namespaces := map [string ]bool {}
34
37
35
38
for _ , file := range plugin .Files {
You can’t perform that action at this time.
0 commit comments