Question: Protobuf Support
See original GitHub issueIs there any official support for protobuf endpoints ?
Using the latest version, 2.9.0 it enters in an infinite loop mapping internal protobuf things…
2018-06-06 10:02:45.099 DEBUG 7010 --- [ main] s.d.s.DefaultModelDependencyProvider : Adding type Lcom/google/protobuf/UnknownFieldSet; for parameter defaultInstanceForType
2018-06-06 10:02:45.100 DEBUG 7010 --- [ main] s.d.s.DefaultModelDependencyProvider : Recursively resolving dependencies for type Lcom/google/protobuf/UnknownFieldSet;
2018-06-06 10:02:45.100 DEBUG 7010 --- [ main] s.d.s.DefaultModelDependencyProvider : Adding type Lcom/google/protobuf/UnknownFieldSet$Parser; for parameter parserForType
2018-06-06 10:02:45.100 DEBUG 7010 --- [ main] s.d.s.DefaultModelDependencyProvider : Recursively resolving dependencies for type Lcom/google/protobuf/UnknownFieldSet$Parser;
2018-06-06 10:02:45.100 DEBUG 7010 --- [ main] s.d.s.DefaultModelDependencyProvider : Adding type Lcom/google/protobuf/DescriptorProtos$OneofOptionsOrBuilder; for parameter optionsOrBuilder
2018-06-06 10:02:45.100 DEBUG 7010 --- [ main] s.d.s.DefaultModelDependencyProvider : Recursively resolving dependencies for type Lcom/google/protobuf/DescriptorProtos$OneofOptionsOrBuilder;
2018-06-06 10:02:45.100 DEBUG 7010 --- [ main] s.d.s.DefaultModelDependencyProvider : Adding type Ljava/util/Map<Lcom/google/protobuf/Descriptors$FieldDescriptor;Ljava/lang/Object;>; for parameter allFields
2018-06-06 10:02:45.100 DEBUG 7010 --- [ main] s.d.s.DefaultModelDependencyProvider : Recursively resolving dependencies for value type Ljava/lang/Object;
2018-06-06 10:02:45.100 DEBUG 7010 --- [ main] s.d.s.DefaultModelDependencyProvider : Marking base type Ljava/lang/Object; as seen
2018-06-06 10:02:45.100 DEBUG 7010 --- [ main] s.d.s.DefaultModelDependencyProvider : Adding type Lcom/google/protobuf/Message; for parameter defaultInstanceForType
2018-06-06 10:02:45.100 DEBUG 7010 --- [ main] s.d.s.DefaultModelDependencyProvider : Recursively resolving dependencies for type Lcom/google/protobuf/Message;
2018-06-06 10:02:45.100 DEBUG 7010 --- [ main] s.d.s.DefaultModelDependencyProvider : Adding type Ljava/util/Map<Lcom/google/protobuf/Descriptors$FieldDescriptor;Ljava/lang/Object;>; for parameter allFields
On the other hand, registering the ProtobufModule
provided by https://github.com/HubSpot/jackson-datatype-protobuf
@Override
public void onApplicationEvent(ObjectMapperConfigured objectMapperConfigured) {
objectMapperConfigured.getObjectMapper().registerModule(new ProtobufModule());
}
I ended up with with empty generated models …
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Frequently Asked Questions | Protocol Buffers
This document answers some frequently asked questions about the Protocol Buffers open source project. If you have a question that isn't answered here, ......
Read more >Protobuf and Null Support - ITNEXT
Let me answer your question, with a question of my own. What does it mean to be null? The problem is null can...
Read more >Problems getting fastpython protobuf support - Stack Overflow
I see that there is supposed to be support for creating python wrappers to the C++ generated protobuf readers.
Read more >Protocol Buffers - Wikipedia
Protocol Buffers (Protobuf) is a free and open-source cross-platform data format used to serialize structured data. It is useful in developing programs to ......
Read more >Inheriting protobuf messages - Google Groups
This question is regarding inheritance in C++ protobuf library. I will explain by giving a concrete example. ... Protobuf doesn't support inheritance.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We were able to get make it work (for our current simple api) with a module for jackson: https://github.com/innogames/springfox-protobuf
@xehonk we were able to use your module ! thanks a lot !
I’ve just changed the following method to support better diferent property names (since we use snake_case in your protos,
BeanPropertyDefinition
was expecting a lowerCamelCase property )