-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Serialize and deserialize special google types based on name and not …
…on type parameter
- Loading branch information
1 parent
ac4552c
commit 419a1e1
Showing
12 changed files
with
369 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,13 @@ | ||
val deserialize: ('constr, 'a) Spec.compound_list -> 'constr -> Yojson.Basic.t -> 'a | ||
|
||
(**) | ||
val to_int64: Yojson.Basic.t -> int64 | ||
val to_int32: Yojson.Basic.t -> int32 | ||
val to_int: Yojson.Basic.t -> int | ||
val to_string: Yojson.Basic.t -> string | ||
val to_bytes: Yojson.Basic.t -> bytes | ||
val to_float: Yojson.Basic.t -> float | ||
val to_bool: Yojson.Basic.t -> bool | ||
val to_list: Yojson.Basic.t -> Yojson.Basic.t list | ||
|
||
(**) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
syntax = "proto3"; | ||
|
||
import "google/protobuf/duration.proto"; | ||
import "google/protobuf/timestamp.proto"; | ||
|
||
message T { | ||
message Duration { | ||
google.protobuf.Duration duration = 1; | ||
} | ||
|
||
message Timestamp { | ||
google.protobuf.Timestamp timestamp = 1; | ||
} |
Oops, something went wrong.