diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2013-09-08 11:05:20 +0300 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2013-09-08 11:05:20 +0300 |
commit | d7f3a74388b4825d2c980c53d0a740ddfd0e4770 (patch) | |
tree | 2041f8c3a43ee6be7df1a9133674b006770f2837 /tests/extensions.proto | |
parent | 4aef194a99705805153471c371e16a3633a4cc4e (diff) |
Handle unsupported extension field types more gracefully.
Previously the generator would stop with NotImplementedException as
soon as a required or repeated extension field is found. New behaviour
is to just ignore the unsupported field and note that in a comment
in the generated file.
Furthermore, allow skipping of extension fields using the generator
option (nanopb).type = FT_IGNORE.
Update issue 83
Status: FixedInGit
Diffstat (limited to 'tests/extensions.proto')
-rw-r--r-- | tests/extensions.proto | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/extensions.proto b/tests/extensions.proto index cbffdce6..d85e8193 100644 --- a/tests/extensions.proto +++ b/tests/extensions.proto @@ -7,6 +7,8 @@ extend AllTypes { message ExtensionMessage { extend AllTypes { optional ExtensionMessage AllTypes_extensionfield2 = 254; + required ExtensionMessage AllTypes_extensionfield3 = 253; + repeated ExtensionMessage AllTypes_extensionfield4 = 252; } required string test1 = 1; |