Handle unsupported extension field types more gracefully.
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>
Sun, 8 Sep 2013 08:05:20 +0000 (11:05 +0300)
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>
Sun, 8 Sep 2013 08:05:20 +0000 (11:05 +0300)
commitd7f3a74388b4825d2c980c53d0a740ddfd0e4770
tree2041f8c3a43ee6be7df1a9133674b006770f2837
parent4aef194a99705805153471c371e16a3633a4cc4e
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
generator/nanopb_generator.py
tests/extensions.proto