mirror of
https://github.com/valitydev/damsel.git
synced 2024-11-06 09:45:21 +00:00
5e569fcaaa
* HG-116: Fix a couple of consistency and clarity issues * HG-116: Introduce JSON-like type * HG-116: Fix JSON types and introduce msgpack types * HG-116: Remove the notion of schema revision * HG-116: Introduce invoice info, better term needed * HG-116: Rename `SmthPredicate` -> `SmthDecision` * HG-116: Add missing namespace declarations * HG-116: Try to get rid of keyword conflicts * HG-116: Mention missing support for extreme floats
20 lines
485 B
Thrift
20 lines
485 B
Thrift
namespace erlang json
|
|
namespace java com.rbkmoney.damsel.json
|
|
|
|
/**
|
|
* Значение в JSON, согласно [RFC7159](https://tools.ietf.org/html/rfc7159).
|
|
*/
|
|
union Value {
|
|
1: Null nl
|
|
2: bool b
|
|
3: i32 i // от -(2^31) до (2^31 - 1)
|
|
4: double flt
|
|
5: string str // UTF-8
|
|
6: Object obj // Ключи свойств закодированы в UTF-8
|
|
7: Array arr
|
|
}
|
|
|
|
struct Null {}
|
|
typedef list<Value> Array
|
|
typedef map<string, Value> Object
|