FIELDS = {
1 => {:type => Thrift::Types::BOOL, :name => 'bool'}
}
+
+ def validate
+ end
end
class OneByte
FIELDS = {
1 => {:type => Thrift::Types::BYTE, :name => 'byte'}
}
+
+ def validate
+ end
end
class OneI16
FIELDS = {
1 => {:type => Thrift::Types::I16, :name => 'i16'}
}
+
+ def validate
+ end
end
class OneI32
FIELDS = {
1 => {:type => Thrift::Types::I32, :name => 'i32'}
}
+
+ def validate
+ end
end
class OneI64
FIELDS = {
1 => {:type => Thrift::Types::I64, :name => 'i64'}
}
+
+ def validate
+ end
end
class OneDouble
FIELDS = {
1 => {:type => Thrift::Types::DOUBLE, :name => 'double'}
}
+
+ def validate
+ end
end
class OneString
FIELDS = {
1 => {:type => Thrift::Types::STRING, :name => 'string'}
}
+
+ def validate
+ end
end
class OneMap
FIELDS = {
1 => {:type => Thrift::Types::MAP, :name => 'map', :key => {:type => Thrift::Types::STRING}, :value => {:type => Thrift::Types::STRING}}
}
+
+ def validate
+ end
end
class NestedMap
FIELDS = {
0 => {:type => Thrift::Types::MAP, :name => 'map', :key => {:type => Thrift::Types::I32}, :value => {:type => Thrift::Types::MAP, :key => {:type => Thrift::Types::I32}, :value => {:type => Thrift::Types::I32}}}
}
+
+ def validate
+ end
end
class OneList
FIELDS = {
1 => {:type => Thrift::Types::LIST, :name => 'list', :element => {:type => Thrift::Types::STRING}}
}
+
+ def validate
+ end
end
class NestedList
FIELDS = {
0 => {:type => Thrift::Types::LIST, :name => 'list', :element => {:type => Thrift::Types::LIST, :element => { :type => Thrift::Types::I32 } } }
}
+
+ def validate
+ end
end
class OneSet
FIELDS = {
1 => {:type => Thrift::Types::SET, :name => 'set', :element => {:type => Thrift::Types::STRING}}
}
+
+ def validate
+ end
end
class NestedSet
FIELDS = {
1 => {:type => Thrift::Types::SET, :name => 'set', :element => {:type => Thrift::Types::SET, :element => { :type => Thrift::Types::STRING } }}
}
+
+ def validate
+ end
end
# struct OneOfEach {
end
true
end
+
+ def validate
+ end
end
# struct Nested1 {
4 => {:type => Thrift::Types::MAP, :name => 'dbl_map', :key => {:type => Thrift::Types::DOUBLE}, :value => {:type => Thrift::Types::STRUCT, :class => OneOfEach}},
5 => {:type => Thrift::Types::MAP, :name => 'str_map', :key => {:type => Thrift::Types::STRING}, :value => {:type => Thrift::Types::STRUCT, :class => OneOfEach}}
}
+
+ def validate
+ end
end
# struct Nested2 {
4 => {:type => Thrift::Types::MAP, :name => 'dbl_map', :key => {:type => Thrift::Types::DOUBLE}, :value => {:type => Thrift::Types::STRUCT, :class => Nested1}},
5 => {:type => Thrift::Types::MAP, :name => 'str_map', :key => {:type => Thrift::Types::STRING}, :value => {:type => Thrift::Types::STRUCT, :class => Nested1}}
}
+
+ def validate
+ end
end
# struct Nested3 {
4 => {:type => Thrift::Types::MAP, :name => 'dbl_map', :key => {:type => Thrift::Types::DOUBLE}, :value => {:type => Thrift::Types::STRUCT, :class => Nested2}},
5 => {:type => Thrift::Types::MAP, :name => 'str_map', :key => {:type => Thrift::Types::STRING}, :value => {:type => Thrift::Types::STRUCT, :class => Nested2}}
}
+
+ def validate
+ end
end
# struct Nested4 {
4 => {:type => Thrift::Types::MAP, :name => 'dbl_map', :key => {:type => Thrift::Types::DOUBLE}, :value => {:type => Thrift::Types::STRUCT, :class => Nested3}},
5 => {:type => Thrift::Types::MAP, :name => 'str_map', :key => {:type => Thrift::Types::STRING}, :value => {:type => Thrift::Types::STRUCT, :class => Nested3}}
}
+
+ def validate
+ end
end
end
end