You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 22, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+72-4
Original file line number
Diff line number
Diff line change
@@ -24,9 +24,9 @@ Protobuf module requires Java 7, due to `protoparser` requiring Java 7.
24
24
25
25
With release 2.6.0 (Jul-2015), this module is considered stable, although number of production deployments is still limited.
26
26
27
-
##Functionality
27
+
# Functionality
28
28
29
-
###Supported versions
29
+
## Supported Versions
30
30
31
31
Version 2 of `protoc` supported. This is the official standard used in production as of Aug-2015.
32
32
There is work underway by protobuf authors to specify a new version, called 'v3', but it has
@@ -41,11 +41,79 @@ When v3 specification is finalized we are likely to work on upgrading module to
41
41
as option of this module, or via new v3-based module, depending on exact compatibility details
42
42
between v2 and v3.
43
43
44
-
### Missing features
44
+
# Usage
45
+
46
+
## Creating ObjectMapper
47
+
Usage is as with basic ```JsonFactory```; most commonly you will just construct a standard ObjectMapper with ```com.fasterxml.jackson.dataformat.protobuf.ProtobufFactory```, like so:
Following features are not yet fully implemented as of version 2.6, but are planned to be evetually supported;
47
115
48
116
* Enforcing of mandatory values
49
117
* Value defaulting
50
-
* Construction of `protoc` schemas using alternatives to reading textual definition; for example, programmatic construction, or generation from Java classes.
118
+
* Construction of `protoc` schemas using alternatives to reading textual definition; for example, programmatic construction.
0 commit comments