Status: New
Owner: [email protected]
Labels: Type-Defect Priority-Medium
New issue 229 by [email protected]: TextFormat should have option to silently
ignore unknown fields
http://code.google.com/p/protobuf/issues/detail?id=229
What steps will reproduce the problem?
1. Add an unknown field to a TextFormat file.
2. Try merging the file with your Message.
3. Get an exception indicating unknown field.
What is the expected output? What do you see instead?
This is expected, but I believe protobufs should offer an option of
silently ignoring these errors.
What version of the product are you using? On what operating system?
Trunk
Please provide any additional information below.
Right now protobufs are a great way to keep services running with an
evolving data schema. You can update the schema with optional fields and
existing code continues to work... unless you use TextFormat. TextFormat
throws a wrench in the plan of data evolution. When you try to merge a
String of TextFormat data into a Message and the String has fields that
don't exist in the Message, then TextFormat throws an exception. I think
TextFormat should be modified to optionally not throw an exception in this
case since it is normal when evolving data.
--
You received this message because you are subscribed to the Google Groups "Protocol
Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/protobuf?hl=en.