deimos-ruby 2.1.2.pre.beta1 → 2.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/README.md +1 -1
- data/karafka.rb +71 -1
- data/lib/deimos/schema_backends/avro_schema_coercer.rb +2 -0
- data/lib/deimos/version.rb +1 -1
- data/lib/generators/deimos/schema_class_generator.rb +10 -14
- data/regenerate_test_schema_classes.rb +0 -66
- data/spec/consumer_spec.rb +25 -4
- data/spec/schemas/my_namespace/generated.rb +6 -4
- data/spec/schemas/my_namespace/my_long_namespace_schema.rb +2 -1
- data/spec/schemas/my_namespace/my_nested_schema.rb +6 -4
- data/spec/schemas/my_namespace/my_schema.rb +4 -3
- data/spec/schemas/my_namespace/my_schema_compound_key.rb +2 -1
- data/spec/schemas/my_namespace/my_schema_id_key.rb +2 -1
- data/spec/schemas/my_namespace/my_schema_key.rb +2 -1
- data/spec/schemas/my_namespace/my_schema_with_boolean.rb +2 -1
- data/spec/schemas/my_namespace/my_schema_with_circular_reference.rb +5 -3
- data/spec/schemas/my_namespace/my_schema_with_complex_type.rb +11 -9
- data/spec/schemas/my_namespace/my_schema_with_date_time.rb +2 -1
- data/spec/schemas/my_namespace/my_schema_with_id.rb +2 -1
- data/spec/schemas/my_namespace/my_schema_with_title.rb +47 -0
- data/spec/schemas/my_namespace/my_schema_with_union_type.rb +12 -7
- data/spec/schemas/my_namespace/my_schema_with_unique_id.rb +2 -1
- data/spec/schemas/my_namespace/my_updated_schema.rb +2 -1
- data/spec/schemas/my_namespace/request/create_topic.rb +2 -1
- data/spec/schemas/my_namespace/request/index.rb +2 -1
- data/spec/schemas/my_namespace/request/update_request.rb +2 -1
- data/spec/schemas/my_namespace/response/create_topic.rb +2 -1
- data/spec/schemas/my_namespace/response/index.rb +2 -1
- data/spec/schemas/my_namespace/response/update_response.rb +2 -1
- data/spec/schemas/my_namespace/wibble.rb +2 -1
- data/spec/schemas/my_namespace/widget.rb +2 -1
- data/spec/schemas/my_namespace/widget_the_second.rb +2 -1
- data/spec/snapshots/consumers-no-nest.snap +65 -36
- data/spec/snapshots/consumers.snap +67 -37
- data/spec/snapshots/consumers_and_producers-no-nest.snap +60 -58
- data/spec/snapshots/consumers_and_producers.snap +62 -59
- data/spec/snapshots/consumers_circular-no-nest.snap +65 -36
- data/spec/snapshots/consumers_circular.snap +67 -37
- data/spec/snapshots/consumers_complex_types-no-nest.snap +65 -36
- data/spec/snapshots/consumers_complex_types.snap +67 -37
- data/spec/snapshots/consumers_nested-no-nest.snap +58 -29
- data/spec/snapshots/consumers_nested.snap +60 -30
- data/spec/snapshots/namespace_folders.snap +66 -61
- data/spec/snapshots/namespace_map.snap +66 -61
- data/spec/snapshots/producers_with_key-no-nest.snap +67 -51
- data/spec/snapshots/producers_with_key.snap +69 -52
- metadata +6 -4
@@ -12,7 +12,8 @@ module Schemas
|
|
12
12
|
attr_accessor :response_id
|
13
13
|
|
14
14
|
# @override
|
15
|
-
def initialize(response_id: nil)
|
15
|
+
def initialize(_from_message: false, response_id: nil)
|
16
|
+
@_from_message = _from_message
|
16
17
|
super
|
17
18
|
self.response_id = response_id
|
18
19
|
end
|
@@ -55,7 +56,8 @@ module Schemas
|
|
55
56
|
attr_accessor :a_record_field
|
56
57
|
|
57
58
|
# @override
|
58
|
-
def initialize(a_record_field: nil)
|
59
|
+
def initialize(_from_message: false, a_record_field: nil)
|
60
|
+
@_from_message = _from_message
|
59
61
|
super
|
60
62
|
self.a_record_field = a_record_field
|
61
63
|
end
|
@@ -130,7 +132,7 @@ module Schemas
|
|
130
132
|
end
|
131
133
|
|
132
134
|
# @override
|
133
|
-
def initialize(a_string: nil,
|
135
|
+
def initialize(_from_message: false, a_string: nil,
|
134
136
|
a_int: nil,
|
135
137
|
a_long: nil,
|
136
138
|
a_float: nil,
|
@@ -142,6 +144,7 @@ module Schemas
|
|
142
144
|
timestamp: nil,
|
143
145
|
message_id: nil,
|
144
146
|
a_record: nil)
|
147
|
+
@_from_message = _from_message
|
145
148
|
super
|
146
149
|
self.a_string = a_string
|
147
150
|
self.a_int = a_int
|
@@ -202,7 +205,8 @@ module Schemas
|
|
202
205
|
attr_accessor :response_id
|
203
206
|
|
204
207
|
# @override
|
205
|
-
def initialize(response_id: nil)
|
208
|
+
def initialize(_from_message: false, response_id: nil)
|
209
|
+
@_from_message = _from_message
|
206
210
|
super
|
207
211
|
self.response_id = response_id
|
208
212
|
end
|
@@ -243,8 +247,9 @@ module Schemas
|
|
243
247
|
attr_accessor :some_int
|
244
248
|
|
245
249
|
# @override
|
246
|
-
def initialize(test_id: nil,
|
250
|
+
def initialize(_from_message: false, test_id: nil,
|
247
251
|
some_int: nil)
|
252
|
+
@_from_message = _from_message
|
248
253
|
super
|
249
254
|
self.test_id = test_id
|
250
255
|
self.some_int = some_int
|
@@ -295,10 +300,11 @@ module Schemas
|
|
295
300
|
attr_accessor :some_optional_int
|
296
301
|
|
297
302
|
# @override
|
298
|
-
def initialize(some_int: nil,
|
303
|
+
def initialize(_from_message: false, some_int: nil,
|
299
304
|
some_float: nil,
|
300
305
|
some_string: nil,
|
301
306
|
some_optional_int: nil)
|
307
|
+
@_from_message = _from_message
|
302
308
|
super
|
303
309
|
self.some_int = some_int
|
304
310
|
self.some_float = some_float
|
@@ -354,11 +360,12 @@ module Schemas
|
|
354
360
|
end
|
355
361
|
|
356
362
|
# @override
|
357
|
-
def initialize(test_id: nil,
|
363
|
+
def initialize(_from_message: false, test_id: nil,
|
358
364
|
test_float: nil,
|
359
365
|
test_array: nil,
|
360
366
|
some_nested_record: nil,
|
361
367
|
some_optional_record: nil)
|
368
|
+
@_from_message = _from_message
|
362
369
|
super
|
363
370
|
self.test_id = test_id
|
364
371
|
self.test_float = test_float
|
@@ -377,6 +384,13 @@ module Schemas
|
|
377
384
|
'com.my-namespace'
|
378
385
|
end
|
379
386
|
|
387
|
+
def self.tombstone(key)
|
388
|
+
record = self.allocate
|
389
|
+
record.tombstone_key = key
|
390
|
+
record.test_id = key
|
391
|
+
record
|
392
|
+
end
|
393
|
+
|
380
394
|
# @override
|
381
395
|
def as_json(_opts={})
|
382
396
|
{
|
@@ -407,8 +421,9 @@ module Schemas
|
|
407
421
|
attr_accessor :some_int
|
408
422
|
|
409
423
|
# @override
|
410
|
-
def initialize(test_id: nil,
|
424
|
+
def initialize(_from_message: false, test_id: nil,
|
411
425
|
some_int: nil)
|
426
|
+
@_from_message = _from_message
|
412
427
|
super
|
413
428
|
self.test_id = test_id
|
414
429
|
self.some_int = some_int
|
@@ -451,8 +466,9 @@ module Schemas
|
|
451
466
|
attr_accessor :part_two
|
452
467
|
|
453
468
|
# @override
|
454
|
-
def initialize(part_one: nil,
|
469
|
+
def initialize(_from_message: false, part_one: nil,
|
455
470
|
part_two: nil)
|
471
|
+
@_from_message = _from_message
|
456
472
|
super
|
457
473
|
self.part_one = part_one
|
458
474
|
self.part_two = part_two
|
@@ -493,7 +509,8 @@ module Schemas
|
|
493
509
|
attr_accessor :id
|
494
510
|
|
495
511
|
# @override
|
496
|
-
def initialize(id: nil)
|
512
|
+
def initialize(_from_message: false, id: nil)
|
513
|
+
@_from_message = _from_message
|
497
514
|
super
|
498
515
|
self.id = id
|
499
516
|
end
|
@@ -532,7 +549,8 @@ module Schemas
|
|
532
549
|
attr_accessor :test_id
|
533
550
|
|
534
551
|
# @override
|
535
|
-
def initialize(test_id: nil)
|
552
|
+
def initialize(_from_message: false, test_id: nil)
|
553
|
+
@_from_message = _from_message
|
536
554
|
super
|
537
555
|
self.test_id = test_id
|
538
556
|
end
|
@@ -573,8 +591,9 @@ module Schemas
|
|
573
591
|
attr_accessor :some_bool
|
574
592
|
|
575
593
|
# @override
|
576
|
-
def initialize(test_id: nil,
|
594
|
+
def initialize(_from_message: false, test_id: nil,
|
577
595
|
some_bool: nil)
|
596
|
+
@_from_message = _from_message
|
578
597
|
super
|
579
598
|
self.test_id = test_id
|
580
599
|
self.some_bool = some_bool
|
@@ -619,7 +638,8 @@ module Schemas
|
|
619
638
|
attr_accessor :property
|
620
639
|
|
621
640
|
# @override
|
622
|
-
def initialize(property: nil)
|
641
|
+
def initialize(_from_message: false, property: nil)
|
642
|
+
@_from_message = _from_message
|
623
643
|
super
|
624
644
|
self.property = property
|
625
645
|
end
|
@@ -656,7 +676,8 @@ module Schemas
|
|
656
676
|
end
|
657
677
|
|
658
678
|
# @override
|
659
|
-
def initialize(properties: {})
|
679
|
+
def initialize(_from_message: false, properties: {})
|
680
|
+
@_from_message = _from_message
|
660
681
|
super
|
661
682
|
self.properties = properties
|
662
683
|
end
|
@@ -699,7 +720,8 @@ module Schemas
|
|
699
720
|
attr_accessor :a_record_field
|
700
721
|
|
701
722
|
# @override
|
702
|
-
def initialize(a_record_field: nil)
|
723
|
+
def initialize(_from_message: false, a_record_field: nil)
|
724
|
+
@_from_message = _from_message
|
703
725
|
super
|
704
726
|
self.a_record_field = a_record_field
|
705
727
|
end
|
@@ -829,7 +851,7 @@ module Schemas
|
|
829
851
|
end
|
830
852
|
|
831
853
|
# @override
|
832
|
-
def initialize(test_id: nil,
|
854
|
+
def initialize(_from_message: false, test_id: nil,
|
833
855
|
test_float: nil,
|
834
856
|
test_string_array: ["test"],
|
835
857
|
test_int_array: [123],
|
@@ -842,6 +864,7 @@ module Schemas
|
|
842
864
|
some_enum_array: nil,
|
843
865
|
some_optional_enum: nil,
|
844
866
|
some_enum_with_default: "sym6")
|
867
|
+
@_from_message = _from_message
|
845
868
|
super
|
846
869
|
self.test_id = test_id
|
847
870
|
self.test_float = test_float
|
@@ -868,13 +891,6 @@ module Schemas
|
|
868
891
|
'com.my-namespace'
|
869
892
|
end
|
870
893
|
|
871
|
-
def self.tombstone(key)
|
872
|
-
record = self.allocate
|
873
|
-
record.tombstone_key = key
|
874
|
-
record.a_string = key
|
875
|
-
record
|
876
|
-
end
|
877
|
-
|
878
894
|
# @override
|
879
895
|
def as_json(_opts={})
|
880
896
|
{
|
@@ -919,11 +935,12 @@ module Schemas
|
|
919
935
|
attr_accessor :timestamp
|
920
936
|
|
921
937
|
# @override
|
922
|
-
def initialize(test_id: nil,
|
938
|
+
def initialize(_from_message: false, test_id: nil,
|
923
939
|
updated_at: nil,
|
924
940
|
some_int: nil,
|
925
941
|
some_datetime_int: nil,
|
926
942
|
timestamp: nil)
|
943
|
+
@_from_message = _from_message
|
927
944
|
super
|
928
945
|
self.test_id = test_id
|
929
946
|
self.updated_at = updated_at
|
@@ -976,10 +993,11 @@ module Schemas
|
|
976
993
|
attr_accessor :timestamp
|
977
994
|
|
978
995
|
# @override
|
979
|
-
def initialize(test_id: nil,
|
996
|
+
def initialize(_from_message: false, test_id: nil,
|
980
997
|
some_int: nil,
|
981
998
|
message_id: nil,
|
982
999
|
timestamp: nil)
|
1000
|
+
@_from_message = _from_message
|
983
1001
|
super
|
984
1002
|
self.test_id = test_id
|
985
1003
|
self.some_int = some_int
|
@@ -1028,9 +1046,10 @@ module Schemas
|
|
1028
1046
|
attr_accessor :title
|
1029
1047
|
|
1030
1048
|
# @override
|
1031
|
-
def initialize(test_id: nil,
|
1049
|
+
def initialize(_from_message: false, test_id: nil,
|
1032
1050
|
some_int: nil,
|
1033
1051
|
title: nil)
|
1052
|
+
@_from_message = _from_message
|
1034
1053
|
super
|
1035
1054
|
self.test_id = test_id
|
1036
1055
|
self.some_int = some_int
|
@@ -1079,8 +1098,9 @@ module Schemas
|
|
1079
1098
|
attr_accessor :record1_id
|
1080
1099
|
|
1081
1100
|
# @override
|
1082
|
-
def initialize(record1_map: {},
|
1101
|
+
def initialize(_from_message: false, record1_map: {},
|
1083
1102
|
record1_id: 0)
|
1103
|
+
@_from_message = _from_message
|
1084
1104
|
super
|
1085
1105
|
self.record1_map = record1_map
|
1086
1106
|
self.record1_id = record1_id
|
@@ -1113,7 +1133,8 @@ module Schemas
|
|
1113
1133
|
attr_accessor :record2_id
|
1114
1134
|
|
1115
1135
|
# @override
|
1116
|
-
def initialize(record2_id: "")
|
1136
|
+
def initialize(_from_message: false, record2_id: "")
|
1137
|
+
@_from_message = _from_message
|
1117
1138
|
super
|
1118
1139
|
self.record2_id = record2_id
|
1119
1140
|
end
|
@@ -1144,7 +1165,8 @@ module Schemas
|
|
1144
1165
|
attr_accessor :record3_id
|
1145
1166
|
|
1146
1167
|
# @override
|
1147
|
-
def initialize(record3_id: 0.0)
|
1168
|
+
def initialize(_from_message: false, record3_id: 0.0)
|
1169
|
+
@_from_message = _from_message
|
1148
1170
|
super
|
1149
1171
|
self.record3_id = record3_id
|
1150
1172
|
end
|
@@ -1175,7 +1197,8 @@ module Schemas
|
|
1175
1197
|
attr_accessor :record4_id
|
1176
1198
|
|
1177
1199
|
# @override
|
1178
|
-
def initialize(record4_id: 0)
|
1200
|
+
def initialize(_from_message: false, record4_id: 0)
|
1201
|
+
@_from_message = _from_message
|
1179
1202
|
super
|
1180
1203
|
self.record4_id = record4_id
|
1181
1204
|
end
|
@@ -1231,9 +1254,10 @@ module Schemas
|
|
1231
1254
|
end
|
1232
1255
|
|
1233
1256
|
# @override
|
1234
|
-
def initialize(test_id: "",
|
1257
|
+
def initialize(_from_message: false, test_id: "",
|
1235
1258
|
test_long: nil,
|
1236
1259
|
test_union_type: nil)
|
1260
|
+
@_from_message = _from_message
|
1237
1261
|
super
|
1238
1262
|
self.test_id = test_id
|
1239
1263
|
self.test_long = test_long
|
@@ -1284,11 +1308,12 @@ module Schemas
|
|
1284
1308
|
attr_accessor :timestamp
|
1285
1309
|
|
1286
1310
|
# @override
|
1287
|
-
def initialize(id: nil,
|
1311
|
+
def initialize(_from_message: false, id: nil,
|
1288
1312
|
test_id: nil,
|
1289
1313
|
some_int: nil,
|
1290
1314
|
message_id: nil,
|
1291
1315
|
timestamp: nil)
|
1316
|
+
@_from_message = _from_message
|
1292
1317
|
super
|
1293
1318
|
self.id = id
|
1294
1319
|
self.test_id = test_id
|
@@ -1335,7 +1360,8 @@ module Schemas
|
|
1335
1360
|
attr_accessor :update_request_id
|
1336
1361
|
|
1337
1362
|
# @override
|
1338
|
-
def initialize(update_request_id: nil)
|
1363
|
+
def initialize(_from_message: false, update_request_id: nil)
|
1364
|
+
@_from_message = _from_message
|
1339
1365
|
super
|
1340
1366
|
self.update_request_id = update_request_id
|
1341
1367
|
end
|
@@ -1374,7 +1400,8 @@ module Schemas
|
|
1374
1400
|
attr_accessor :update_response_id
|
1375
1401
|
|
1376
1402
|
# @override
|
1377
|
-
def initialize(update_response_id: nil)
|
1403
|
+
def initialize(_from_message: false, update_response_id: nil)
|
1404
|
+
@_from_message = _from_message
|
1378
1405
|
super
|
1379
1406
|
self.update_response_id = update_response_id
|
1380
1407
|
end
|
@@ -1429,7 +1456,7 @@ module Schemas
|
|
1429
1456
|
attr_accessor :created_at
|
1430
1457
|
|
1431
1458
|
# @override
|
1432
|
-
def initialize(id: nil,
|
1459
|
+
def initialize(_from_message: false, id: nil,
|
1433
1460
|
wibble_id: nil,
|
1434
1461
|
name: nil,
|
1435
1462
|
floop: nil,
|
@@ -1438,6 +1465,7 @@ module Schemas
|
|
1438
1465
|
birthday_optional: nil,
|
1439
1466
|
updated_at: nil,
|
1440
1467
|
created_at: nil)
|
1468
|
+
@_from_message = _from_message
|
1441
1469
|
super
|
1442
1470
|
self.id = id
|
1443
1471
|
self.wibble_id = wibble_id
|
@@ -1500,11 +1528,12 @@ module Schemas
|
|
1500
1528
|
attr_accessor :created_at
|
1501
1529
|
|
1502
1530
|
# @override
|
1503
|
-
def initialize(id: nil,
|
1531
|
+
def initialize(_from_message: false, id: nil,
|
1504
1532
|
widget_id: nil,
|
1505
1533
|
name: nil,
|
1506
1534
|
updated_at: nil,
|
1507
1535
|
created_at: nil)
|
1536
|
+
@_from_message = _from_message
|
1508
1537
|
super
|
1509
1538
|
self.id = id
|
1510
1539
|
self.widget_id = widget_id
|
@@ -1559,11 +1588,12 @@ module Schemas
|
|
1559
1588
|
attr_accessor :created_at
|
1560
1589
|
|
1561
1590
|
# @override
|
1562
|
-
def initialize(id: nil,
|
1591
|
+
def initialize(_from_message: false, id: nil,
|
1563
1592
|
widget_id: nil,
|
1564
1593
|
model_id: nil,
|
1565
1594
|
updated_at: nil,
|
1566
1595
|
created_at: nil)
|
1596
|
+
@_from_message = _from_message
|
1567
1597
|
super
|
1568
1598
|
self.id = id
|
1569
1599
|
self.widget_id = widget_id
|
@@ -12,7 +12,8 @@ module Schemas
|
|
12
12
|
attr_accessor :a_record_field
|
13
13
|
|
14
14
|
# @override
|
15
|
-
def initialize(a_record_field: nil)
|
15
|
+
def initialize(_from_message: false, a_record_field: nil)
|
16
|
+
@_from_message = _from_message
|
16
17
|
super
|
17
18
|
self.a_record_field = a_record_field
|
18
19
|
end
|
@@ -89,7 +90,8 @@ module Schemas
|
|
89
90
|
attr_accessor :response_id
|
90
91
|
|
91
92
|
# @override
|
92
|
-
def initialize(response_id: nil)
|
93
|
+
def initialize(_from_message: false, response_id: nil)
|
94
|
+
@_from_message = _from_message
|
93
95
|
super
|
94
96
|
self.response_id = response_id
|
95
97
|
end
|
@@ -163,7 +165,7 @@ module Schemas
|
|
163
165
|
end
|
164
166
|
|
165
167
|
# @override
|
166
|
-
def initialize(a_string: nil,
|
168
|
+
def initialize(_from_message: false, a_string: nil,
|
167
169
|
a_int: nil,
|
168
170
|
a_long: nil,
|
169
171
|
a_float: nil,
|
@@ -175,6 +177,7 @@ module Schemas
|
|
175
177
|
timestamp: nil,
|
176
178
|
message_id: nil,
|
177
179
|
a_record: nil)
|
180
|
+
@_from_message = _from_message
|
178
181
|
super
|
179
182
|
self.a_string = a_string
|
180
183
|
self.a_int = a_int
|
@@ -235,7 +238,8 @@ module Schemas
|
|
235
238
|
attr_accessor :response_id
|
236
239
|
|
237
240
|
# @override
|
238
|
-
def initialize(response_id: nil)
|
241
|
+
def initialize(_from_message: false, response_id: nil)
|
242
|
+
@_from_message = _from_message
|
239
243
|
super
|
240
244
|
self.response_id = response_id
|
241
245
|
end
|
@@ -276,8 +280,9 @@ module Schemas
|
|
276
280
|
attr_accessor :some_int
|
277
281
|
|
278
282
|
# @override
|
279
|
-
def initialize(test_id: nil,
|
283
|
+
def initialize(_from_message: false, test_id: nil,
|
280
284
|
some_int: nil)
|
285
|
+
@_from_message = _from_message
|
281
286
|
super
|
282
287
|
self.test_id = test_id
|
283
288
|
self.some_int = some_int
|
@@ -324,10 +329,11 @@ module Schemas
|
|
324
329
|
attr_accessor :some_optional_int
|
325
330
|
|
326
331
|
# @override
|
327
|
-
def initialize(some_int: nil,
|
332
|
+
def initialize(_from_message: false, some_int: nil,
|
328
333
|
some_float: nil,
|
329
334
|
some_string: nil,
|
330
335
|
some_optional_int: nil)
|
336
|
+
@_from_message = _from_message
|
331
337
|
super
|
332
338
|
self.some_int = some_int
|
333
339
|
self.some_float = some_float
|
@@ -393,11 +399,12 @@ module Schemas
|
|
393
399
|
end
|
394
400
|
|
395
401
|
# @override
|
396
|
-
def initialize(test_id: nil,
|
402
|
+
def initialize(_from_message: false, test_id: nil,
|
397
403
|
test_float: nil,
|
398
404
|
test_array: nil,
|
399
405
|
some_nested_record: nil,
|
400
406
|
some_optional_record: nil)
|
407
|
+
@_from_message = _from_message
|
401
408
|
super
|
402
409
|
self.test_id = test_id
|
403
410
|
self.test_float = test_float
|
@@ -453,8 +460,9 @@ module Schemas
|
|
453
460
|
attr_accessor :some_int
|
454
461
|
|
455
462
|
# @override
|
456
|
-
def initialize(test_id: nil,
|
463
|
+
def initialize(_from_message: false, test_id: nil,
|
457
464
|
some_int: nil)
|
465
|
+
@_from_message = _from_message
|
458
466
|
super
|
459
467
|
self.test_id = test_id
|
460
468
|
self.some_int = some_int
|
@@ -497,8 +505,9 @@ module Schemas
|
|
497
505
|
attr_accessor :part_two
|
498
506
|
|
499
507
|
# @override
|
500
|
-
def initialize(part_one: nil,
|
508
|
+
def initialize(_from_message: false, part_one: nil,
|
501
509
|
part_two: nil)
|
510
|
+
@_from_message = _from_message
|
502
511
|
super
|
503
512
|
self.part_one = part_one
|
504
513
|
self.part_two = part_two
|
@@ -539,7 +548,8 @@ module Schemas
|
|
539
548
|
attr_accessor :id
|
540
549
|
|
541
550
|
# @override
|
542
|
-
def initialize(id: nil)
|
551
|
+
def initialize(_from_message: false, id: nil)
|
552
|
+
@_from_message = _from_message
|
543
553
|
super
|
544
554
|
self.id = id
|
545
555
|
end
|
@@ -578,7 +588,8 @@ module Schemas
|
|
578
588
|
attr_accessor :test_id
|
579
589
|
|
580
590
|
# @override
|
581
|
-
def initialize(test_id: nil)
|
591
|
+
def initialize(_from_message: false, test_id: nil)
|
592
|
+
@_from_message = _from_message
|
582
593
|
super
|
583
594
|
self.test_id = test_id
|
584
595
|
end
|
@@ -619,8 +630,9 @@ module Schemas
|
|
619
630
|
attr_accessor :some_bool
|
620
631
|
|
621
632
|
# @override
|
622
|
-
def initialize(test_id: nil,
|
633
|
+
def initialize(_from_message: false, test_id: nil,
|
623
634
|
some_bool: nil)
|
635
|
+
@_from_message = _from_message
|
624
636
|
super
|
625
637
|
self.test_id = test_id
|
626
638
|
self.some_bool = some_bool
|
@@ -669,7 +681,8 @@ module Schemas
|
|
669
681
|
end
|
670
682
|
|
671
683
|
# @override
|
672
|
-
def initialize(properties: {})
|
684
|
+
def initialize(_from_message: false, properties: {})
|
685
|
+
@_from_message = _from_message
|
673
686
|
super
|
674
687
|
self.properties = properties
|
675
688
|
end
|
@@ -776,7 +789,7 @@ module Schemas
|
|
776
789
|
end
|
777
790
|
|
778
791
|
# @override
|
779
|
-
def initialize(test_id: nil,
|
792
|
+
def initialize(_from_message: false, test_id: nil,
|
780
793
|
test_float: nil,
|
781
794
|
test_string_array: ["test"],
|
782
795
|
test_int_array: [123],
|
@@ -789,6 +802,7 @@ module Schemas
|
|
789
802
|
some_enum_array: nil,
|
790
803
|
some_optional_enum: nil,
|
791
804
|
some_enum_with_default: "sym6")
|
805
|
+
@_from_message = _from_message
|
792
806
|
super
|
793
807
|
self.test_id = test_id
|
794
808
|
self.test_float = test_float
|
@@ -859,11 +873,12 @@ module Schemas
|
|
859
873
|
attr_accessor :timestamp
|
860
874
|
|
861
875
|
# @override
|
862
|
-
def initialize(test_id: nil,
|
876
|
+
def initialize(_from_message: false, test_id: nil,
|
863
877
|
updated_at: nil,
|
864
878
|
some_int: nil,
|
865
879
|
some_datetime_int: nil,
|
866
880
|
timestamp: nil)
|
881
|
+
@_from_message = _from_message
|
867
882
|
super
|
868
883
|
self.test_id = test_id
|
869
884
|
self.updated_at = updated_at
|
@@ -916,10 +931,11 @@ module Schemas
|
|
916
931
|
attr_accessor :timestamp
|
917
932
|
|
918
933
|
# @override
|
919
|
-
def initialize(test_id: nil,
|
934
|
+
def initialize(_from_message: false, test_id: nil,
|
920
935
|
some_int: nil,
|
921
936
|
message_id: nil,
|
922
937
|
timestamp: nil)
|
938
|
+
@_from_message = _from_message
|
923
939
|
super
|
924
940
|
self.test_id = test_id
|
925
941
|
self.some_int = some_int
|
@@ -968,9 +984,10 @@ module Schemas
|
|
968
984
|
attr_accessor :title
|
969
985
|
|
970
986
|
# @override
|
971
|
-
def initialize(test_id: nil,
|
987
|
+
def initialize(_from_message: false, test_id: nil,
|
972
988
|
some_int: nil,
|
973
989
|
title: nil)
|
990
|
+
@_from_message = _from_message
|
974
991
|
super
|
975
992
|
self.test_id = test_id
|
976
993
|
self.some_int = some_int
|
@@ -1040,9 +1057,10 @@ module Schemas
|
|
1040
1057
|
end
|
1041
1058
|
|
1042
1059
|
# @override
|
1043
|
-
def initialize(test_id: "",
|
1060
|
+
def initialize(_from_message: false, test_id: "",
|
1044
1061
|
test_long: nil,
|
1045
1062
|
test_union_type: nil)
|
1063
|
+
@_from_message = _from_message
|
1046
1064
|
super
|
1047
1065
|
self.test_id = test_id
|
1048
1066
|
self.test_long = test_long
|
@@ -1093,11 +1111,12 @@ module Schemas
|
|
1093
1111
|
attr_accessor :timestamp
|
1094
1112
|
|
1095
1113
|
# @override
|
1096
|
-
def initialize(id: nil,
|
1114
|
+
def initialize(_from_message: false, id: nil,
|
1097
1115
|
test_id: nil,
|
1098
1116
|
some_int: nil,
|
1099
1117
|
message_id: nil,
|
1100
1118
|
timestamp: nil)
|
1119
|
+
@_from_message = _from_message
|
1101
1120
|
super
|
1102
1121
|
self.id = id
|
1103
1122
|
self.test_id = test_id
|
@@ -1144,7 +1163,8 @@ module Schemas
|
|
1144
1163
|
attr_accessor :property
|
1145
1164
|
|
1146
1165
|
# @override
|
1147
|
-
def initialize(property: nil)
|
1166
|
+
def initialize(_from_message: false, property: nil)
|
1167
|
+
@_from_message = _from_message
|
1148
1168
|
super
|
1149
1169
|
self.property = property
|
1150
1170
|
end
|
@@ -1185,8 +1205,9 @@ module Schemas
|
|
1185
1205
|
attr_accessor :record1_id
|
1186
1206
|
|
1187
1207
|
# @override
|
1188
|
-
def initialize(record1_map: {},
|
1208
|
+
def initialize(_from_message: false, record1_map: {},
|
1189
1209
|
record1_id: 0)
|
1210
|
+
@_from_message = _from_message
|
1190
1211
|
super
|
1191
1212
|
self.record1_map = record1_map
|
1192
1213
|
self.record1_id = record1_id
|
@@ -1227,7 +1248,8 @@ module Schemas
|
|
1227
1248
|
attr_accessor :record2_id
|
1228
1249
|
|
1229
1250
|
# @override
|
1230
|
-
def initialize(record2_id: "")
|
1251
|
+
def initialize(_from_message: false, record2_id: "")
|
1252
|
+
@_from_message = _from_message
|
1231
1253
|
super
|
1232
1254
|
self.record2_id = record2_id
|
1233
1255
|
end
|
@@ -1266,7 +1288,8 @@ module Schemas
|
|
1266
1288
|
attr_accessor :record3_id
|
1267
1289
|
|
1268
1290
|
# @override
|
1269
|
-
def initialize(record3_id: 0.0)
|
1291
|
+
def initialize(_from_message: false, record3_id: 0.0)
|
1292
|
+
@_from_message = _from_message
|
1270
1293
|
super
|
1271
1294
|
self.record3_id = record3_id
|
1272
1295
|
end
|
@@ -1305,7 +1328,8 @@ module Schemas
|
|
1305
1328
|
attr_accessor :record4_id
|
1306
1329
|
|
1307
1330
|
# @override
|
1308
|
-
def initialize(record4_id: 0)
|
1331
|
+
def initialize(_from_message: false, record4_id: 0)
|
1332
|
+
@_from_message = _from_message
|
1309
1333
|
super
|
1310
1334
|
self.record4_id = record4_id
|
1311
1335
|
end
|
@@ -1344,7 +1368,8 @@ module Schemas
|
|
1344
1368
|
attr_accessor :update_request_id
|
1345
1369
|
|
1346
1370
|
# @override
|
1347
|
-
def initialize(update_request_id: nil)
|
1371
|
+
def initialize(_from_message: false, update_request_id: nil)
|
1372
|
+
@_from_message = _from_message
|
1348
1373
|
super
|
1349
1374
|
self.update_request_id = update_request_id
|
1350
1375
|
end
|
@@ -1383,7 +1408,8 @@ module Schemas
|
|
1383
1408
|
attr_accessor :update_response_id
|
1384
1409
|
|
1385
1410
|
# @override
|
1386
|
-
def initialize(update_response_id: nil)
|
1411
|
+
def initialize(_from_message: false, update_response_id: nil)
|
1412
|
+
@_from_message = _from_message
|
1387
1413
|
super
|
1388
1414
|
self.update_response_id = update_response_id
|
1389
1415
|
end
|
@@ -1438,7 +1464,7 @@ module Schemas
|
|
1438
1464
|
attr_accessor :created_at
|
1439
1465
|
|
1440
1466
|
# @override
|
1441
|
-
def initialize(id: nil,
|
1467
|
+
def initialize(_from_message: false, id: nil,
|
1442
1468
|
wibble_id: nil,
|
1443
1469
|
name: nil,
|
1444
1470
|
floop: nil,
|
@@ -1447,6 +1473,7 @@ module Schemas
|
|
1447
1473
|
birthday_optional: nil,
|
1448
1474
|
updated_at: nil,
|
1449
1475
|
created_at: nil)
|
1476
|
+
@_from_message = _from_message
|
1450
1477
|
super
|
1451
1478
|
self.id = id
|
1452
1479
|
self.wibble_id = wibble_id
|
@@ -1509,11 +1536,12 @@ module Schemas
|
|
1509
1536
|
attr_accessor :created_at
|
1510
1537
|
|
1511
1538
|
# @override
|
1512
|
-
def initialize(id: nil,
|
1539
|
+
def initialize(_from_message: false, id: nil,
|
1513
1540
|
widget_id: nil,
|
1514
1541
|
name: nil,
|
1515
1542
|
updated_at: nil,
|
1516
1543
|
created_at: nil)
|
1544
|
+
@_from_message = _from_message
|
1517
1545
|
super
|
1518
1546
|
self.id = id
|
1519
1547
|
self.widget_id = widget_id
|
@@ -1568,11 +1596,12 @@ module Schemas
|
|
1568
1596
|
attr_accessor :created_at
|
1569
1597
|
|
1570
1598
|
# @override
|
1571
|
-
def initialize(id: nil,
|
1599
|
+
def initialize(_from_message: false, id: nil,
|
1572
1600
|
widget_id: nil,
|
1573
1601
|
model_id: nil,
|
1574
1602
|
updated_at: nil,
|
1575
1603
|
created_at: nil)
|
1604
|
+
@_from_message = _from_message
|
1576
1605
|
super
|
1577
1606
|
self.id = id
|
1578
1607
|
self.widget_id = widget_id
|