Skip to content

CAMEL-13988: Add Map data input support to Protobuf dataformat#3206

Merged
davsclaus merged 2 commits intoapache:masterfrom
omarsmak:CAMEL-13988
Sep 30, 2019
Merged

CAMEL-13988: Add Map data input support to Protobuf dataformat#3206
davsclaus merged 2 commits intoapache:masterfrom
omarsmak:CAMEL-13988

Conversation

@omarsmak
Copy link
Member

This PR intends to add the support data of Map using data converters. It will convert Map to Proto Message using message descriptors.
Note: This PR is not breaking change as intends not to break any existing integration.

Signed-off-by: Omar Al-Safi <omarsmak@gmail.com>
Signed-off-by: Omar Al-Safi <omarsmak@gmail.com>
Copy link
Contributor

@oscerd oscerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The implementation looks good, but didn't we agree of enabling this behavior through an option?

@omarsmak
Copy link
Member Author

omarsmak commented Sep 27, 2019

@oscerd yeah, Initially I thought about the option config but then if we can use the type converter out of the box without hurting the existing behavior, would it be better? I think csv dataformat does it in a similar way, hence I just wanted to keep functionally similar to other dataformat.

@oscerd
Copy link
Contributor

oscerd commented Sep 27, 2019

Yes, if the existing behavior is the same, it's better for sure.

@omarsmak
Copy link
Member Author

Yeah the behavior didn't change, all testes untouched, just added 2 more tests :)

@omarsmak omarsmak changed the title Camel 13988: Add Map data input support to Protobuf dataformat CAMEL-13988: Add Map data input support to Protobuf dataformat Sep 27, 2019
@davsclaus davsclaus merged commit 96fc480 into apache:master Sep 30, 2019
@omarsmak omarsmak deleted the CAMEL-13988 branch September 30, 2019 06:07
fvaleri pushed a commit to fvaleri/camel that referenced this pull request Oct 6, 2019
…e#3206)

* CAMEL-13988: Initial protobuf converter from Map to Proto Message

Signed-off-by: Omar Al-Safi <omarsmak@gmail.com>

* CAMEL-13988: Add tests and modify documentation for protobuf dataformat

Signed-off-by: Omar Al-Safi <omarsmak@gmail.com>
weiqiang123 pushed a commit to weiqiang123/camel that referenced this pull request Jan 20, 2020
…e#3206)

* CAMEL-13988: Initial protobuf converter from Map to Proto Message

Signed-off-by: Omar Al-Safi <omarsmak@gmail.com>

* CAMEL-13988: Add tests and modify documentation for protobuf dataformat

Signed-off-by: Omar Al-Safi <omarsmak@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants