From 2a73dbac98b46d2b34a2238d6923df9b21979fa2 Mon Sep 17 00:00:00 2001 From: Nat Noordanus Date: Sun, 18 Oct 2020 22:47:58 +0200 Subject: [PATCH] Make plugin use betterproto generated classes internally This means the betterproto plugin no longer needs to depend durectly on protobuf. This requires a small runtime hack to monkey patch some google types to get around the fact that the compiler uses proto2, but betterproto expects proto3. Also: - regenerate google.protobuf package - fix a regex bug in the logic for determining whether to use a google wrapper type. - fix a bug causing comments to get mixed up when multiple proto files generate code into a single python module --- tests/inputs/oneof/oneof-name.json | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 tests/inputs/oneof/oneof-name.json diff --git a/tests/inputs/oneof/oneof-name.json b/tests/inputs/oneof/oneof-name.json new file mode 100644 index 0000000..605484b --- /dev/null +++ b/tests/inputs/oneof/oneof-name.json @@ -0,0 +1,3 @@ +{ + "pitier": "Mr. T" +}