aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/protobuf/json/ut/fields.incl
blob: d848f614cd7cf751bc05a310fe2c2dd4c2beb62e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Intentionally no #pragma once

// (Field name == JSON key, Value)
DEFINE_FIELD(I32, Min<i32>())
DEFINE_FIELD(I64, Min<i64>())
DEFINE_FIELD(UI32, Max<ui32>())
DEFINE_FIELD(UI64, Max<ui64>())
DEFINE_FIELD(SI32, Min<i32>())
DEFINE_FIELD(SI64, Min<i64>())
DEFINE_FIELD(FI32, Max<ui32>())
DEFINE_FIELD(FI64, Max<ui64>())
DEFINE_FIELD(SFI32, Min<i32>())
DEFINE_FIELD(SFI64, Min<i64>())
DEFINE_FIELD(Bool, true)
DEFINE_FIELD(String, "Lorem ipsum")
DEFINE_FIELD(Bytes, "מחשב")
DEFINE_FIELD(Enum, E_1)
DEFINE_FIELD(Float, 1.123f)
DEFINE_FIELD(Double, 1.123456789012)
DEFINE_FIELD(OneString, "Lorem ipsum dolor") 
DEFINE_FIELD(OneTwoString, "Lorem ipsum dolor sit") 
DEFINE_FIELD(ABC, "abc")
DEFINE_FIELD(UserID, "some_id")