structurize 2.16.6__py3-none-any.whl → 2.17.0__py3-none-any.whl
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.
- avrotize/__init__.py +1 -0
- avrotize/_version.py +3 -3
- avrotize/avrotocsharp.py +74 -10
- avrotize/avrotojava.py +1130 -51
- avrotize/avrotopython.py +4 -2
- avrotize/commands.json +671 -53
- avrotize/common.py +6 -1
- avrotize/jsonstoavro.py +518 -49
- avrotize/structuretocpp.py +697 -0
- avrotize/structuretocsv.py +365 -0
- avrotize/structuretodatapackage.py +659 -0
- avrotize/structuretodb.py +1125 -0
- avrotize/structuretogo.py +720 -0
- avrotize/structuretographql.py +502 -0
- avrotize/structuretoiceberg.py +355 -0
- avrotize/structuretojava.py +853 -0
- avrotize/structuretokusto.py +639 -0
- avrotize/structuretomd.py +322 -0
- avrotize/structuretoproto.py +764 -0
- avrotize/structuretorust.py +714 -0
- avrotize/structuretoxsd.py +679 -0
- {structurize-2.16.6.dist-info → structurize-2.17.0.dist-info}/METADATA +1 -1
- {structurize-2.16.6.dist-info → structurize-2.17.0.dist-info}/RECORD +27 -14
- {structurize-2.16.6.dist-info → structurize-2.17.0.dist-info}/WHEEL +0 -0
- {structurize-2.16.6.dist-info → structurize-2.17.0.dist-info}/entry_points.txt +0 -0
- {structurize-2.16.6.dist-info → structurize-2.17.0.dist-info}/licenses/LICENSE +0 -0
- {structurize-2.16.6.dist-info → structurize-2.17.0.dist-info}/top_level.txt +0 -0
avrotize/commands.json
CHANGED
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
"proto_root": "args.proto_root"
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
|
-
"extensions": [
|
|
16
|
+
"extensions": [
|
|
17
|
+
".proto"
|
|
18
|
+
],
|
|
17
19
|
"args": [
|
|
18
20
|
{
|
|
19
21
|
"name": "input",
|
|
@@ -69,7 +71,9 @@
|
|
|
69
71
|
"allow_optional": "args.allow_optional"
|
|
70
72
|
}
|
|
71
73
|
},
|
|
72
|
-
"extensions": [
|
|
74
|
+
"extensions": [
|
|
75
|
+
".avsc"
|
|
76
|
+
],
|
|
73
77
|
"args": [
|
|
74
78
|
{
|
|
75
79
|
"name": "input",
|
|
@@ -94,7 +98,11 @@
|
|
|
94
98
|
"name": "--naming",
|
|
95
99
|
"type": "str",
|
|
96
100
|
"help": "Type naming convention",
|
|
97
|
-
"choices": [
|
|
101
|
+
"choices": [
|
|
102
|
+
"snake",
|
|
103
|
+
"camel",
|
|
104
|
+
"pascal"
|
|
105
|
+
],
|
|
98
106
|
"required": false,
|
|
99
107
|
"default": "pascal"
|
|
100
108
|
},
|
|
@@ -111,7 +119,11 @@
|
|
|
111
119
|
{
|
|
112
120
|
"name": "--naming",
|
|
113
121
|
"message": "Select type naming convention",
|
|
114
|
-
"choices": [
|
|
122
|
+
"choices": [
|
|
123
|
+
"snake",
|
|
124
|
+
"camel",
|
|
125
|
+
"pascal"
|
|
126
|
+
],
|
|
115
127
|
"default": "pascal",
|
|
116
128
|
"required": false
|
|
117
129
|
},
|
|
@@ -124,6 +136,66 @@
|
|
|
124
136
|
}
|
|
125
137
|
]
|
|
126
138
|
},
|
|
139
|
+
{
|
|
140
|
+
"command": "s2p",
|
|
141
|
+
"description": "Convert JSON Structure to Protocol Buffers (.proto)",
|
|
142
|
+
"group": "1_Schemas",
|
|
143
|
+
"function": {
|
|
144
|
+
"name": "avrotize.structuretoproto.convert_structure_to_proto",
|
|
145
|
+
"args": {
|
|
146
|
+
"structure_schema_path": "input_file_path",
|
|
147
|
+
"proto_file_path": "output_file_path",
|
|
148
|
+
"naming_mode": "args.naming_mode",
|
|
149
|
+
"allow_optional": "args.allow_optional"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"extensions": [
|
|
153
|
+
".struct.json",
|
|
154
|
+
".json"
|
|
155
|
+
],
|
|
156
|
+
"args": [
|
|
157
|
+
{
|
|
158
|
+
"name": "input",
|
|
159
|
+
"type": "str",
|
|
160
|
+
"nargs": "?",
|
|
161
|
+
"help": "Path to the JSON Structure file (or read from stdin if omitted)",
|
|
162
|
+
"required": false
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "--out",
|
|
166
|
+
"type": "str",
|
|
167
|
+
"help": "Output path for the Protocol Buffers .proto files",
|
|
168
|
+
"required": false
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "--struct",
|
|
172
|
+
"type": "str",
|
|
173
|
+
"help": "Deprecated: Path to the JSON Structure file (for backcompat)",
|
|
174
|
+
"required": false
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "--naming-mode",
|
|
178
|
+
"type": "str",
|
|
179
|
+
"help": "Naming convention for message and field names",
|
|
180
|
+
"choices": [
|
|
181
|
+
"pascal",
|
|
182
|
+
"camel",
|
|
183
|
+
"snake"
|
|
184
|
+
],
|
|
185
|
+
"default": "pascal",
|
|
186
|
+
"required": false
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"name": "--allow-optional",
|
|
190
|
+
"type": "bool",
|
|
191
|
+
"help": "Use 'optional' keyword for nullable fields (proto3)",
|
|
192
|
+
"default": false,
|
|
193
|
+
"required": false
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"suggested_output_file_path": "{input_file_name}-proto",
|
|
197
|
+
"prompts": []
|
|
198
|
+
},
|
|
127
199
|
{
|
|
128
200
|
"command": "j2a",
|
|
129
201
|
"description": "Convert JSON schema to Avrotize schema",
|
|
@@ -137,7 +209,10 @@
|
|
|
137
209
|
"split_top_level_records": "args.split_top_level_records"
|
|
138
210
|
}
|
|
139
211
|
},
|
|
140
|
-
"extensions": [
|
|
212
|
+
"extensions": [
|
|
213
|
+
".json",
|
|
214
|
+
".jsons"
|
|
215
|
+
],
|
|
141
216
|
"args": [
|
|
142
217
|
{
|
|
143
218
|
"name": "input",
|
|
@@ -201,7 +276,9 @@
|
|
|
201
276
|
"naming_mode": "args.naming"
|
|
202
277
|
}
|
|
203
278
|
},
|
|
204
|
-
"extensions": [
|
|
279
|
+
"extensions": [
|
|
280
|
+
".avsc"
|
|
281
|
+
],
|
|
205
282
|
"args": [
|
|
206
283
|
{
|
|
207
284
|
"name": "input",
|
|
@@ -226,17 +303,24 @@
|
|
|
226
303
|
"name": "--naming",
|
|
227
304
|
"type": "str",
|
|
228
305
|
"help": "Type naming convention",
|
|
229
|
-
"choices": [
|
|
306
|
+
"choices": [
|
|
307
|
+
"snake",
|
|
308
|
+
"camel",
|
|
309
|
+
"pascal",
|
|
310
|
+
"default"
|
|
311
|
+
],
|
|
230
312
|
"required": false,
|
|
231
313
|
"default": "default"
|
|
232
|
-
}
|
|
314
|
+
}
|
|
315
|
+
],
|
|
233
316
|
"suggested_output_file_path": "{input_file_name}.jsons",
|
|
234
317
|
"prompts": []
|
|
235
318
|
},
|
|
236
319
|
{
|
|
237
320
|
"command": "j2s",
|
|
238
321
|
"description": "Convert JSON schema to JSON Structure",
|
|
239
|
-
"group": "1_Schemas",
|
|
322
|
+
"group": "1_Schemas",
|
|
323
|
+
"function": {
|
|
240
324
|
"name": "avrotize.jsonstostructure.convert_json_schema_to_structure_files",
|
|
241
325
|
"args": {
|
|
242
326
|
"json_schema_file_path": "input_file_path",
|
|
@@ -244,7 +328,10 @@
|
|
|
244
328
|
"root_namespace": "args.namespace"
|
|
245
329
|
}
|
|
246
330
|
},
|
|
247
|
-
"extensions": [
|
|
331
|
+
"extensions": [
|
|
332
|
+
".json",
|
|
333
|
+
".jsons"
|
|
334
|
+
],
|
|
248
335
|
"args": [
|
|
249
336
|
{
|
|
250
337
|
"name": "input",
|
|
@@ -321,7 +408,8 @@
|
|
|
321
408
|
"type": "str",
|
|
322
409
|
"default": "document",
|
|
323
410
|
"required": false
|
|
324
|
-
}
|
|
411
|
+
}
|
|
412
|
+
]
|
|
325
413
|
},
|
|
326
414
|
{
|
|
327
415
|
"command": "s2j",
|
|
@@ -334,7 +422,10 @@
|
|
|
334
422
|
"json_schema_path": "output_file_path"
|
|
335
423
|
}
|
|
336
424
|
},
|
|
337
|
-
"extensions": [
|
|
425
|
+
"extensions": [
|
|
426
|
+
".struct.json",
|
|
427
|
+
".json"
|
|
428
|
+
],
|
|
338
429
|
"args": [
|
|
339
430
|
{
|
|
340
431
|
"name": "input",
|
|
@@ -365,7 +456,9 @@
|
|
|
365
456
|
"namespace": "args.namespace"
|
|
366
457
|
}
|
|
367
458
|
},
|
|
368
|
-
"extensions": [
|
|
459
|
+
"extensions": [
|
|
460
|
+
".xsd"
|
|
461
|
+
],
|
|
369
462
|
"args": [
|
|
370
463
|
{
|
|
371
464
|
"name": "input",
|
|
@@ -415,7 +508,9 @@
|
|
|
415
508
|
"target_namespace": "args.namespace"
|
|
416
509
|
}
|
|
417
510
|
},
|
|
418
|
-
"extensions": [
|
|
511
|
+
"extensions": [
|
|
512
|
+
".avsc"
|
|
513
|
+
],
|
|
419
514
|
"args": [
|
|
420
515
|
{
|
|
421
516
|
"name": "input",
|
|
@@ -455,7 +550,7 @@
|
|
|
455
550
|
},
|
|
456
551
|
{
|
|
457
552
|
"command": "a2k",
|
|
458
|
-
"description": "Convert Avrotize schema to Kusto table schemas",
|
|
553
|
+
"description": "Convert Avrotize schema to Kusto table schemas",
|
|
459
554
|
"group": "4_RTDB",
|
|
460
555
|
"function": {
|
|
461
556
|
"name": "avrotize.avrotokusto.convert_avro_to_kusto",
|
|
@@ -469,7 +564,9 @@
|
|
|
469
564
|
"emit_cloudevents_dispatch_table": "args.emit_cloudevents_dispatch"
|
|
470
565
|
}
|
|
471
566
|
},
|
|
472
|
-
"extensions": [
|
|
567
|
+
"extensions": [
|
|
568
|
+
".avsc"
|
|
569
|
+
],
|
|
473
570
|
"args": [
|
|
474
571
|
{
|
|
475
572
|
"name": "input",
|
|
@@ -554,7 +651,7 @@
|
|
|
554
651
|
},
|
|
555
652
|
{
|
|
556
653
|
"command": "k2a",
|
|
557
|
-
"description": "Convert Kusto schema to Avrotize schema",
|
|
654
|
+
"description": "Convert Kusto schema to Avrotize schema",
|
|
558
655
|
"group": "1_Schemas",
|
|
559
656
|
"function": {
|
|
560
657
|
"name": "avrotize.kustotoavro.convert_kusto_to_avro",
|
|
@@ -568,7 +665,9 @@
|
|
|
568
665
|
"emit_cloudevents_xregistry": "args.emit_xregistry"
|
|
569
666
|
}
|
|
570
667
|
},
|
|
571
|
-
"extensions": [
|
|
668
|
+
"extensions": [
|
|
669
|
+
".kusto"
|
|
670
|
+
],
|
|
572
671
|
"args": [
|
|
573
672
|
{
|
|
574
673
|
"name": "input",
|
|
@@ -658,7 +757,9 @@
|
|
|
658
757
|
"emit_cloudevents_columns": "args.emit_cloudevents_columns"
|
|
659
758
|
}
|
|
660
759
|
},
|
|
661
|
-
"extensions": [
|
|
760
|
+
"extensions": [
|
|
761
|
+
".avsc"
|
|
762
|
+
],
|
|
662
763
|
"args": [
|
|
663
764
|
{
|
|
664
765
|
"name": "input",
|
|
@@ -734,6 +835,66 @@
|
|
|
734
835
|
}
|
|
735
836
|
]
|
|
736
837
|
},
|
|
838
|
+
{
|
|
839
|
+
"command": "struct2sql",
|
|
840
|
+
"description": "Convert JSON Structure schema to SQL schema",
|
|
841
|
+
"group": "5_SQL",
|
|
842
|
+
"function": {
|
|
843
|
+
"name": "avrotize.structuretodb.convert_structure_to_sql",
|
|
844
|
+
"args": {
|
|
845
|
+
"structure_schema_path": "input_file_path",
|
|
846
|
+
"dbscript_file_path": "output_file_path",
|
|
847
|
+
"db_dialect": "args.dialect",
|
|
848
|
+
"emit_cloudevents_columns": "args.emit_cloudevents_columns"
|
|
849
|
+
}
|
|
850
|
+
},
|
|
851
|
+
"extensions": [
|
|
852
|
+
".jstruct",
|
|
853
|
+
".struct.json"
|
|
854
|
+
],
|
|
855
|
+
"args": [
|
|
856
|
+
{
|
|
857
|
+
"name": "input",
|
|
858
|
+
"type": "str",
|
|
859
|
+
"nargs": "?",
|
|
860
|
+
"help": "Path to the JSON Structure schema file (or read from stdin if omitted)",
|
|
861
|
+
"required": false
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
"name": "--out",
|
|
865
|
+
"type": "str",
|
|
866
|
+
"help": "Path to the SQL table",
|
|
867
|
+
"required": false
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
"name": "--dialect",
|
|
871
|
+
"type": "str",
|
|
872
|
+
"help": "SQL dialect (database type)",
|
|
873
|
+
"choices": [
|
|
874
|
+
"mysql",
|
|
875
|
+
"mariadb",
|
|
876
|
+
"postgres",
|
|
877
|
+
"sqlserver",
|
|
878
|
+
"oracle",
|
|
879
|
+
"sqlite",
|
|
880
|
+
"bigquery",
|
|
881
|
+
"snowflake",
|
|
882
|
+
"redshift",
|
|
883
|
+
"db2"
|
|
884
|
+
],
|
|
885
|
+
"required": true
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
"name": "--emit-cloudevents-columns",
|
|
889
|
+
"type": "bool",
|
|
890
|
+
"help": "Add CloudEvents columns to the SQL table",
|
|
891
|
+
"default": false,
|
|
892
|
+
"required": false
|
|
893
|
+
}
|
|
894
|
+
],
|
|
895
|
+
"suggested_output_file_path": "{input_file_name}.sql",
|
|
896
|
+
"prompts": []
|
|
897
|
+
},
|
|
737
898
|
{
|
|
738
899
|
"command": "a2mongo",
|
|
739
900
|
"description": "Convert Avrotize schema to MongoDB schema",
|
|
@@ -747,7 +908,9 @@
|
|
|
747
908
|
"emit_cloudevents_columns": "args.emit_cloudevents_columns"
|
|
748
909
|
}
|
|
749
910
|
},
|
|
750
|
-
"extensions": [
|
|
911
|
+
"extensions": [
|
|
912
|
+
".avsc"
|
|
913
|
+
],
|
|
751
914
|
"args": [
|
|
752
915
|
{
|
|
753
916
|
"name": "input",
|
|
@@ -793,7 +956,9 @@
|
|
|
793
956
|
"emit_cloudevents_columns": "args.emit_cloudevents_columns"
|
|
794
957
|
}
|
|
795
958
|
},
|
|
796
|
-
"extensions": [
|
|
959
|
+
"extensions": [
|
|
960
|
+
".avsc"
|
|
961
|
+
],
|
|
797
962
|
"args": [
|
|
798
963
|
{
|
|
799
964
|
"name": "input",
|
|
@@ -841,7 +1006,7 @@
|
|
|
841
1006
|
{
|
|
842
1007
|
"command": "a2ib",
|
|
843
1008
|
"description": "Convert Avrotize schema to Iceberg schema",
|
|
844
|
-
"group": "3_Datalake",
|
|
1009
|
+
"group": "3_Datalake",
|
|
845
1010
|
"function": {
|
|
846
1011
|
"name": "avrotize.avrotoiceberg.convert_avro_to_iceberg",
|
|
847
1012
|
"args": {
|
|
@@ -851,7 +1016,9 @@
|
|
|
851
1016
|
"emit_cloudevents_columns": "args.emit_cloudevents_columns"
|
|
852
1017
|
}
|
|
853
1018
|
},
|
|
854
|
-
"extensions": [
|
|
1019
|
+
"extensions": [
|
|
1020
|
+
".avsc"
|
|
1021
|
+
],
|
|
855
1022
|
"args": [
|
|
856
1023
|
{
|
|
857
1024
|
"name": "input",
|
|
@@ -890,6 +1057,58 @@
|
|
|
890
1057
|
}
|
|
891
1058
|
]
|
|
892
1059
|
},
|
|
1060
|
+
{
|
|
1061
|
+
"command": "s2ib",
|
|
1062
|
+
"description": "Convert JSON Structure to Iceberg schema",
|
|
1063
|
+
"group": "3_Datalake",
|
|
1064
|
+
"function": {
|
|
1065
|
+
"name": "avrotize.structuretoiceberg.convert_structure_to_iceberg",
|
|
1066
|
+
"args": {
|
|
1067
|
+
"structure_schema_path": "input_file_path",
|
|
1068
|
+
"output_path": "output_file_path",
|
|
1069
|
+
"structure_record_type": "args.record_type",
|
|
1070
|
+
"emit_cloudevents_columns": "args.emit_cloudevents_columns"
|
|
1071
|
+
}
|
|
1072
|
+
},
|
|
1073
|
+
"extensions": [".struct.json", ".json"],
|
|
1074
|
+
"args": [
|
|
1075
|
+
{
|
|
1076
|
+
"name": "input",
|
|
1077
|
+
"type": "str",
|
|
1078
|
+
"nargs": "?",
|
|
1079
|
+
"help": "Path to the JSON Structure schema file (or read from stdin if omitted)",
|
|
1080
|
+
"required": false
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
"name": "--out",
|
|
1084
|
+
"type": "str",
|
|
1085
|
+
"help": "Path to the Iceberg schema",
|
|
1086
|
+
"required": false
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
"name": "--record-type",
|
|
1090
|
+
"type": "str",
|
|
1091
|
+
"help": "Record type in the JSON Structure schema",
|
|
1092
|
+
"required": false
|
|
1093
|
+
},
|
|
1094
|
+
{
|
|
1095
|
+
"name": "--emit-cloudevents-columns",
|
|
1096
|
+
"type": "bool",
|
|
1097
|
+
"help": "Add CloudEvents columns to the Iceberg schema",
|
|
1098
|
+
"default": false,
|
|
1099
|
+
"required": false
|
|
1100
|
+
}
|
|
1101
|
+
],
|
|
1102
|
+
"suggested_output_file_path": "{input_file_name}.iceberg",
|
|
1103
|
+
"prompts": [
|
|
1104
|
+
{
|
|
1105
|
+
"name": "--emit-cloudevents-columns",
|
|
1106
|
+
"message": "Add CloudEvents columns to the Iceberg schema?",
|
|
1107
|
+
"type": "bool",
|
|
1108
|
+
"default": false
|
|
1109
|
+
}
|
|
1110
|
+
]
|
|
1111
|
+
},
|
|
893
1112
|
{
|
|
894
1113
|
"command": "pq2a",
|
|
895
1114
|
"description": "Convert Parquet schema to Avrotize schema",
|
|
@@ -902,7 +1121,9 @@
|
|
|
902
1121
|
"namespace": "args.namespace"
|
|
903
1122
|
}
|
|
904
1123
|
},
|
|
905
|
-
"extensions": [
|
|
1124
|
+
"extensions": [
|
|
1125
|
+
".parquet"
|
|
1126
|
+
],
|
|
906
1127
|
"args": [
|
|
907
1128
|
{
|
|
908
1129
|
"name": "input",
|
|
@@ -951,7 +1172,9 @@
|
|
|
951
1172
|
"avro_file_path": "output_file_path"
|
|
952
1173
|
}
|
|
953
1174
|
},
|
|
954
|
-
"extensions": [
|
|
1175
|
+
"extensions": [
|
|
1176
|
+
".asn1"
|
|
1177
|
+
],
|
|
955
1178
|
"args": [
|
|
956
1179
|
{
|
|
957
1180
|
"name": "input",
|
|
@@ -988,7 +1211,9 @@
|
|
|
988
1211
|
"avro_file_path": "output_file_path"
|
|
989
1212
|
}
|
|
990
1213
|
},
|
|
991
|
-
"extensions": [
|
|
1214
|
+
"extensions": [
|
|
1215
|
+
".kstruct"
|
|
1216
|
+
],
|
|
992
1217
|
"args": [
|
|
993
1218
|
{
|
|
994
1219
|
"name": "input",
|
|
@@ -1030,7 +1255,9 @@
|
|
|
1030
1255
|
"base_namespace": "args.namespace"
|
|
1031
1256
|
}
|
|
1032
1257
|
},
|
|
1033
|
-
"extensions": [
|
|
1258
|
+
"extensions": [
|
|
1259
|
+
".avsc"
|
|
1260
|
+
],
|
|
1034
1261
|
"args": [
|
|
1035
1262
|
{
|
|
1036
1263
|
"name": "input",
|
|
@@ -1142,7 +1369,10 @@
|
|
|
1142
1369
|
"project_name": "args.project_name"
|
|
1143
1370
|
}
|
|
1144
1371
|
},
|
|
1145
|
-
"extensions": [
|
|
1372
|
+
"extensions": [
|
|
1373
|
+
".struct.json",
|
|
1374
|
+
".json"
|
|
1375
|
+
],
|
|
1146
1376
|
"args": [
|
|
1147
1377
|
{
|
|
1148
1378
|
"name": "input",
|
|
@@ -1251,7 +1481,9 @@
|
|
|
1251
1481
|
"pascal_properties": "args.pascal_properties"
|
|
1252
1482
|
}
|
|
1253
1483
|
},
|
|
1254
|
-
"extensions": [
|
|
1484
|
+
"extensions": [
|
|
1485
|
+
".avsc"
|
|
1486
|
+
],
|
|
1255
1487
|
"args": [
|
|
1256
1488
|
{
|
|
1257
1489
|
"name": "input",
|
|
@@ -1336,7 +1568,9 @@
|
|
|
1336
1568
|
"avro_annotation": "args.avro_annotation"
|
|
1337
1569
|
}
|
|
1338
1570
|
},
|
|
1339
|
-
"extensions": [
|
|
1571
|
+
"extensions": [
|
|
1572
|
+
".avsc"
|
|
1573
|
+
],
|
|
1340
1574
|
"args": [
|
|
1341
1575
|
{
|
|
1342
1576
|
"name": "input",
|
|
@@ -1408,7 +1642,10 @@
|
|
|
1408
1642
|
"avro_annotation": "args.avro_annotation"
|
|
1409
1643
|
}
|
|
1410
1644
|
},
|
|
1411
|
-
"extensions": [
|
|
1645
|
+
"extensions": [
|
|
1646
|
+
".struct.json",
|
|
1647
|
+
".json"
|
|
1648
|
+
],
|
|
1412
1649
|
"args": [
|
|
1413
1650
|
{
|
|
1414
1651
|
"name": "input",
|
|
@@ -1454,6 +1691,146 @@
|
|
|
1454
1691
|
}
|
|
1455
1692
|
]
|
|
1456
1693
|
},
|
|
1694
|
+
{
|
|
1695
|
+
"command": "s2cpp",
|
|
1696
|
+
"description": "Convert JSON Structure to C++ classes",
|
|
1697
|
+
"group": "2_ProgLanguages",
|
|
1698
|
+
"function": {
|
|
1699
|
+
"name": "avrotize.structuretocpp.convert_structure_to_cpp",
|
|
1700
|
+
"args": {
|
|
1701
|
+
"structure_schema_path": "input_file_path",
|
|
1702
|
+
"output_dir": "output_file_path",
|
|
1703
|
+
"namespace": "args.namespace",
|
|
1704
|
+
"json_annotation": "args.json_annotation"
|
|
1705
|
+
}
|
|
1706
|
+
},
|
|
1707
|
+
"extensions": [".struct.json", ".json"],
|
|
1708
|
+
"args": [
|
|
1709
|
+
{
|
|
1710
|
+
"name": "input",
|
|
1711
|
+
"type": "str",
|
|
1712
|
+
"nargs": "?",
|
|
1713
|
+
"help": "Path to the JSON Structure schema file (or read from stdin if omitted)",
|
|
1714
|
+
"required": false
|
|
1715
|
+
},
|
|
1716
|
+
{
|
|
1717
|
+
"name": "--out",
|
|
1718
|
+
"type": "str",
|
|
1719
|
+
"help": "Output path for the C++ classes",
|
|
1720
|
+
"required": true
|
|
1721
|
+
},
|
|
1722
|
+
{
|
|
1723
|
+
"name": "--namespace",
|
|
1724
|
+
"type": "str",
|
|
1725
|
+
"help": "C++ root namespace",
|
|
1726
|
+
"required": false
|
|
1727
|
+
},
|
|
1728
|
+
{
|
|
1729
|
+
"name": "--json-annotation",
|
|
1730
|
+
"type": "bool",
|
|
1731
|
+
"help": "Include JSON serialization support",
|
|
1732
|
+
"default": true,
|
|
1733
|
+
"required": false
|
|
1734
|
+
}
|
|
1735
|
+
],
|
|
1736
|
+
"suggested_output_file_path": "{input_file_name}-cpp",
|
|
1737
|
+
"prompts": [
|
|
1738
|
+
{
|
|
1739
|
+
"name": "--json-annotation",
|
|
1740
|
+
"message": "Include JSON serialization support?",
|
|
1741
|
+
"type": "bool",
|
|
1742
|
+
"default": true
|
|
1743
|
+
}
|
|
1744
|
+
]
|
|
1745
|
+
},
|
|
1746
|
+
{
|
|
1747
|
+
"command": "s2csv",
|
|
1748
|
+
"description": "Convert JSON Structure to CSV schema",
|
|
1749
|
+
"group": "1_Schemas",
|
|
1750
|
+
"function": {
|
|
1751
|
+
"name": "avrotize.structuretocsv.convert_structure_to_csv_schema",
|
|
1752
|
+
"args": {
|
|
1753
|
+
"structure_schema_path": "input_file_path",
|
|
1754
|
+
"csv_schema_path": "output_file_path"
|
|
1755
|
+
}
|
|
1756
|
+
},
|
|
1757
|
+
"extensions": [".struct.json", ".json"],
|
|
1758
|
+
"args": [
|
|
1759
|
+
{
|
|
1760
|
+
"name": "input",
|
|
1761
|
+
"type": "str",
|
|
1762
|
+
"nargs": "?",
|
|
1763
|
+
"help": "Path to the JSON Structure schema file (or read from stdin if omitted)",
|
|
1764
|
+
"required": false
|
|
1765
|
+
},
|
|
1766
|
+
{
|
|
1767
|
+
"name": "--out",
|
|
1768
|
+
"type": "str",
|
|
1769
|
+
"help": "Output path for the CSV schema file",
|
|
1770
|
+
"required": false
|
|
1771
|
+
}
|
|
1772
|
+
],
|
|
1773
|
+
"suggested_output_file_path": "{input_file_name}.csv.json",
|
|
1774
|
+
"prompts": []
|
|
1775
|
+
},
|
|
1776
|
+
{
|
|
1777
|
+
"command": "s2rust",
|
|
1778
|
+
"description": "Convert JSON Structure to Rust classes",
|
|
1779
|
+
"group": "2_ProgLanguages",
|
|
1780
|
+
"function": {
|
|
1781
|
+
"name": "avrotize.structuretorust.convert_structure_to_rust",
|
|
1782
|
+
"args": {
|
|
1783
|
+
"structure_schema_path": "input_file_path",
|
|
1784
|
+
"rust_file_path": "output_file_path",
|
|
1785
|
+
"package_name": "args.package",
|
|
1786
|
+
"serde_annotation": "args.json_annotation"
|
|
1787
|
+
}
|
|
1788
|
+
},
|
|
1789
|
+
"extensions": [".struct.json", ".json"],
|
|
1790
|
+
"args": [
|
|
1791
|
+
{
|
|
1792
|
+
"name": "input",
|
|
1793
|
+
"type": "str",
|
|
1794
|
+
"nargs": "?",
|
|
1795
|
+
"help": "Path to the JSON Structure schema file (or read from stdin if omitted)",
|
|
1796
|
+
"required": false
|
|
1797
|
+
},
|
|
1798
|
+
{
|
|
1799
|
+
"name": "--out",
|
|
1800
|
+
"type": "str",
|
|
1801
|
+
"help": "Output path for the Rust classes",
|
|
1802
|
+
"required": true
|
|
1803
|
+
},
|
|
1804
|
+
{
|
|
1805
|
+
"name": "--package",
|
|
1806
|
+
"type": "str",
|
|
1807
|
+
"help": "Rust package name",
|
|
1808
|
+
"required": false
|
|
1809
|
+
},
|
|
1810
|
+
{
|
|
1811
|
+
"name": "--json-annotation",
|
|
1812
|
+
"type": "bool",
|
|
1813
|
+
"help": "Use Serde JSON annotations",
|
|
1814
|
+
"default": false,
|
|
1815
|
+
"required": false
|
|
1816
|
+
}
|
|
1817
|
+
],
|
|
1818
|
+
"suggested_output_file_path": "{input_file_name}-rust",
|
|
1819
|
+
"prompts": [
|
|
1820
|
+
{
|
|
1821
|
+
"name": "--package",
|
|
1822
|
+
"message": "Enter the Rust package name (optional)",
|
|
1823
|
+
"type": "str",
|
|
1824
|
+
"required": false
|
|
1825
|
+
},
|
|
1826
|
+
{
|
|
1827
|
+
"name": "--json-annotation",
|
|
1828
|
+
"message": "Use Serde JSON annotations?",
|
|
1829
|
+
"type": "bool",
|
|
1830
|
+
"default": false
|
|
1831
|
+
}
|
|
1832
|
+
]
|
|
1833
|
+
},
|
|
1457
1834
|
{
|
|
1458
1835
|
"command": "s2ts",
|
|
1459
1836
|
"description": "Convert JSON Structure to TypeScript classes",
|
|
@@ -1514,6 +1891,39 @@
|
|
|
1514
1891
|
}
|
|
1515
1892
|
]
|
|
1516
1893
|
},
|
|
1894
|
+
{
|
|
1895
|
+
"command": "struct2gql",
|
|
1896
|
+
"description": "Convert JSON Structure schema to GraphQL schema",
|
|
1897
|
+
"group": "1_Schemas",
|
|
1898
|
+
"function": {
|
|
1899
|
+
"name": "avrotize.structuretographql.convert_structure_to_graphql",
|
|
1900
|
+
"args": {
|
|
1901
|
+
"structure_schema_path": "input_file_path",
|
|
1902
|
+
"graphql_schema_path": "output_file_path"
|
|
1903
|
+
}
|
|
1904
|
+
},
|
|
1905
|
+
"extensions": [
|
|
1906
|
+
".struct.json",
|
|
1907
|
+
".json"
|
|
1908
|
+
],
|
|
1909
|
+
"args": [
|
|
1910
|
+
{
|
|
1911
|
+
"name": "input",
|
|
1912
|
+
"type": "str",
|
|
1913
|
+
"nargs": "?",
|
|
1914
|
+
"help": "Path to the JSON Structure schema file (or read from stdin if omitted)",
|
|
1915
|
+
"required": false
|
|
1916
|
+
},
|
|
1917
|
+
{
|
|
1918
|
+
"name": "--out",
|
|
1919
|
+
"type": "str",
|
|
1920
|
+
"help": "Path to the GraphQL schema file",
|
|
1921
|
+
"required": false
|
|
1922
|
+
}
|
|
1923
|
+
],
|
|
1924
|
+
"suggested_output_file_path": "{input_file_name}.graphql",
|
|
1925
|
+
"prompts": []
|
|
1926
|
+
},
|
|
1517
1927
|
{
|
|
1518
1928
|
"command": "a2ts",
|
|
1519
1929
|
"description": "Convert Avrotize schema to TypeScript classes",
|
|
@@ -1528,7 +1938,9 @@
|
|
|
1528
1938
|
"typedjson_annotation": "args.typedjson_annotation"
|
|
1529
1939
|
}
|
|
1530
1940
|
},
|
|
1531
|
-
"extensions": [
|
|
1941
|
+
"extensions": [
|
|
1942
|
+
".avsc"
|
|
1943
|
+
],
|
|
1532
1944
|
"args": [
|
|
1533
1945
|
{
|
|
1534
1946
|
"name": "input",
|
|
@@ -1599,7 +2011,9 @@
|
|
|
1599
2011
|
"avro_annotation": "args.avro_annotation"
|
|
1600
2012
|
}
|
|
1601
2013
|
},
|
|
1602
|
-
"extensions": [
|
|
2014
|
+
"extensions": [
|
|
2015
|
+
".avsc"
|
|
2016
|
+
],
|
|
1603
2017
|
"args": [
|
|
1604
2018
|
{
|
|
1605
2019
|
"name": "input",
|
|
@@ -1658,7 +2072,9 @@
|
|
|
1658
2072
|
"json_annotation": "args.json_annotation"
|
|
1659
2073
|
}
|
|
1660
2074
|
},
|
|
1661
|
-
"extensions": [
|
|
2075
|
+
"extensions": [
|
|
2076
|
+
".avsc"
|
|
2077
|
+
],
|
|
1662
2078
|
"args": [
|
|
1663
2079
|
{
|
|
1664
2080
|
"name": "input",
|
|
@@ -1739,7 +2155,9 @@
|
|
|
1739
2155
|
"package_username": "args.package_username"
|
|
1740
2156
|
}
|
|
1741
2157
|
},
|
|
1742
|
-
"extensions": [
|
|
2158
|
+
"extensions": [
|
|
2159
|
+
".avsc"
|
|
2160
|
+
],
|
|
1743
2161
|
"args": [
|
|
1744
2162
|
{
|
|
1745
2163
|
"name": "input",
|
|
@@ -1841,7 +2259,9 @@
|
|
|
1841
2259
|
"serde_annotation": "args.json_annotation"
|
|
1842
2260
|
}
|
|
1843
2261
|
},
|
|
1844
|
-
"extensions": [
|
|
2262
|
+
"extensions": [
|
|
2263
|
+
".avsc"
|
|
2264
|
+
],
|
|
1845
2265
|
"args": [
|
|
1846
2266
|
{
|
|
1847
2267
|
"name": "input",
|
|
@@ -1917,7 +2337,9 @@
|
|
|
1917
2337
|
"avro_record_type": "args.record_type"
|
|
1918
2338
|
}
|
|
1919
2339
|
},
|
|
1920
|
-
"extensions": [
|
|
2340
|
+
"extensions": [
|
|
2341
|
+
".avsc"
|
|
2342
|
+
],
|
|
1921
2343
|
"args": [
|
|
1922
2344
|
{
|
|
1923
2345
|
"name": "input",
|
|
@@ -1949,6 +2371,53 @@
|
|
|
1949
2371
|
}
|
|
1950
2372
|
]
|
|
1951
2373
|
},
|
|
2374
|
+
{
|
|
2375
|
+
"command": "s2dp",
|
|
2376
|
+
"description": "Convert JSON Structure schema to Datapackage schema",
|
|
2377
|
+
"group": "1_Schemas",
|
|
2378
|
+
"function": {
|
|
2379
|
+
"name": "avrotize.structuretodatapackage.convert_structure_to_datapackage",
|
|
2380
|
+
"args": {
|
|
2381
|
+
"structure_schema_path": "input_file_path",
|
|
2382
|
+
"datapackage_path": "output_file_path",
|
|
2383
|
+
"structure_record_type": "args.record_type"
|
|
2384
|
+
}
|
|
2385
|
+
},
|
|
2386
|
+
"extensions": [
|
|
2387
|
+
".struct.json",
|
|
2388
|
+
".json"
|
|
2389
|
+
],
|
|
2390
|
+
"args": [
|
|
2391
|
+
{
|
|
2392
|
+
"name": "input",
|
|
2393
|
+
"type": "str",
|
|
2394
|
+
"nargs": "?",
|
|
2395
|
+
"help": "Path to the JSON Structure schema file (or read from stdin if omitted)",
|
|
2396
|
+
"required": false
|
|
2397
|
+
},
|
|
2398
|
+
{
|
|
2399
|
+
"name": "--out",
|
|
2400
|
+
"type": "str",
|
|
2401
|
+
"help": "Output path for the Datapackage schema",
|
|
2402
|
+
"required": false
|
|
2403
|
+
},
|
|
2404
|
+
{
|
|
2405
|
+
"name": "--record-type",
|
|
2406
|
+
"type": "str",
|
|
2407
|
+
"help": "Record type in the JSON Structure schema",
|
|
2408
|
+
"required": false
|
|
2409
|
+
}
|
|
2410
|
+
],
|
|
2411
|
+
"suggested_output_file_path": "{input_file_name}.datapackage.json",
|
|
2412
|
+
"prompts": [
|
|
2413
|
+
{
|
|
2414
|
+
"name": "--record-type",
|
|
2415
|
+
"message": "Enter the record type in the JSON Structure schema (optional)",
|
|
2416
|
+
"type": "str",
|
|
2417
|
+
"required": false
|
|
2418
|
+
}
|
|
2419
|
+
]
|
|
2420
|
+
},
|
|
1952
2421
|
{
|
|
1953
2422
|
"command": "a2md",
|
|
1954
2423
|
"description": "Convert Avrotize schema to Markdown documentation",
|
|
@@ -1960,7 +2429,9 @@
|
|
|
1960
2429
|
"markdown_path": "output_file_path"
|
|
1961
2430
|
}
|
|
1962
2431
|
},
|
|
1963
|
-
"extensions": [
|
|
2432
|
+
"extensions": [
|
|
2433
|
+
".avsc"
|
|
2434
|
+
],
|
|
1964
2435
|
"args": [
|
|
1965
2436
|
{
|
|
1966
2437
|
"name": "input",
|
|
@@ -1989,7 +2460,9 @@
|
|
|
1989
2460
|
"schema_file": "input_file_path"
|
|
1990
2461
|
}
|
|
1991
2462
|
},
|
|
1992
|
-
"extensions": [
|
|
2463
|
+
"extensions": [
|
|
2464
|
+
".avsc"
|
|
2465
|
+
],
|
|
1993
2466
|
"args": [
|
|
1994
2467
|
{
|
|
1995
2468
|
"name": "input",
|
|
@@ -2004,7 +2477,7 @@
|
|
|
2004
2477
|
{
|
|
2005
2478
|
"command": "csv2a",
|
|
2006
2479
|
"description": "Convert CSV file to Avrotize schema",
|
|
2007
|
-
"group": "1_Schemas",
|
|
2480
|
+
"group": "1_Schemas",
|
|
2008
2481
|
"function": {
|
|
2009
2482
|
"name": "avrotize.csvtoavro.convert_csv_to_avro",
|
|
2010
2483
|
"args": {
|
|
@@ -2013,7 +2486,9 @@
|
|
|
2013
2486
|
"namespace": "args.namespace"
|
|
2014
2487
|
}
|
|
2015
2488
|
},
|
|
2016
|
-
"extensions": [
|
|
2489
|
+
"extensions": [
|
|
2490
|
+
".csv"
|
|
2491
|
+
],
|
|
2017
2492
|
"args": [
|
|
2018
2493
|
{
|
|
2019
2494
|
"name": "input",
|
|
@@ -2058,7 +2533,9 @@
|
|
|
2058
2533
|
"emit_cloudevents_columns": "args.emit_cloudevents_columns"
|
|
2059
2534
|
}
|
|
2060
2535
|
},
|
|
2061
|
-
"extensions": [
|
|
2536
|
+
"extensions": [
|
|
2537
|
+
".avsc"
|
|
2538
|
+
],
|
|
2062
2539
|
"args": [
|
|
2063
2540
|
{
|
|
2064
2541
|
"name": "input",
|
|
@@ -2091,6 +2568,48 @@
|
|
|
2091
2568
|
}
|
|
2092
2569
|
]
|
|
2093
2570
|
},
|
|
2571
|
+
{
|
|
2572
|
+
"command": "struct2cassandra",
|
|
2573
|
+
"description": "Convert JSON Structure schema to Cassandra schema",
|
|
2574
|
+
"group": "5_SQL",
|
|
2575
|
+
"function": {
|
|
2576
|
+
"name": "avrotize.structuretodb.convert_structure_to_sql",
|
|
2577
|
+
"args": {
|
|
2578
|
+
"structure_schema_path": "input_file_path",
|
|
2579
|
+
"dbscript_file_path": "output_file_path",
|
|
2580
|
+
"db_dialect": "cassandra",
|
|
2581
|
+
"emit_cloudevents_columns": "args.emit_cloudevents_columns"
|
|
2582
|
+
}
|
|
2583
|
+
},
|
|
2584
|
+
"extensions": [
|
|
2585
|
+
".jstruct",
|
|
2586
|
+
".struct.json"
|
|
2587
|
+
],
|
|
2588
|
+
"args": [
|
|
2589
|
+
{
|
|
2590
|
+
"name": "input",
|
|
2591
|
+
"type": "str",
|
|
2592
|
+
"nargs": "?",
|
|
2593
|
+
"help": "Path to the JSON Structure schema file (or read from stdin if omitted)",
|
|
2594
|
+
"required": false
|
|
2595
|
+
},
|
|
2596
|
+
{
|
|
2597
|
+
"name": "--out",
|
|
2598
|
+
"type": "str",
|
|
2599
|
+
"help": "Path to the Cassandra schema file",
|
|
2600
|
+
"required": false
|
|
2601
|
+
},
|
|
2602
|
+
{
|
|
2603
|
+
"name": "--emit-cloudevents-columns",
|
|
2604
|
+
"type": "bool",
|
|
2605
|
+
"help": "Add CloudEvents columns",
|
|
2606
|
+
"default": false,
|
|
2607
|
+
"required": false
|
|
2608
|
+
}
|
|
2609
|
+
],
|
|
2610
|
+
"suggested_output_file_path": "{input_file_name}.cql",
|
|
2611
|
+
"prompts": []
|
|
2612
|
+
},
|
|
2094
2613
|
{
|
|
2095
2614
|
"command": "a2dynamodb",
|
|
2096
2615
|
"description": "Convert Avrotize schema to DynamoDB schema",
|
|
@@ -2104,7 +2623,9 @@
|
|
|
2104
2623
|
"emit_cloudevents_columns": "args.emit_cloudevents_columns"
|
|
2105
2624
|
}
|
|
2106
2625
|
},
|
|
2107
|
-
"extensions": [
|
|
2626
|
+
"extensions": [
|
|
2627
|
+
".avsc"
|
|
2628
|
+
],
|
|
2108
2629
|
"args": [
|
|
2109
2630
|
{
|
|
2110
2631
|
"name": "input",
|
|
@@ -2150,7 +2671,9 @@
|
|
|
2150
2671
|
"emit_cloudevents_columns": "args.emit_cloudevents_columns"
|
|
2151
2672
|
}
|
|
2152
2673
|
},
|
|
2153
|
-
"extensions": [
|
|
2674
|
+
"extensions": [
|
|
2675
|
+
".avsc"
|
|
2676
|
+
],
|
|
2154
2677
|
"args": [
|
|
2155
2678
|
{
|
|
2156
2679
|
"name": "input",
|
|
@@ -2196,7 +2719,9 @@
|
|
|
2196
2719
|
"emit_cloudevents_columns": "args.emit_cloudevents_columns"
|
|
2197
2720
|
}
|
|
2198
2721
|
},
|
|
2199
|
-
"extensions": [
|
|
2722
|
+
"extensions": [
|
|
2723
|
+
".avsc"
|
|
2724
|
+
],
|
|
2200
2725
|
"args": [
|
|
2201
2726
|
{
|
|
2202
2727
|
"name": "input",
|
|
@@ -2242,7 +2767,9 @@
|
|
|
2242
2767
|
"emit_cloudevents_columns": "args.emit_cloudevents_columns"
|
|
2243
2768
|
}
|
|
2244
2769
|
},
|
|
2245
|
-
"extensions": [
|
|
2770
|
+
"extensions": [
|
|
2771
|
+
".avsc"
|
|
2772
|
+
],
|
|
2246
2773
|
"args": [
|
|
2247
2774
|
{
|
|
2248
2775
|
"name": "input",
|
|
@@ -2288,7 +2815,9 @@
|
|
|
2288
2815
|
"emit_cloudevents_columns": "args.emit_cloudevents_columns"
|
|
2289
2816
|
}
|
|
2290
2817
|
},
|
|
2291
|
-
"extensions": [
|
|
2818
|
+
"extensions": [
|
|
2819
|
+
".avsc"
|
|
2820
|
+
],
|
|
2292
2821
|
"args": [
|
|
2293
2822
|
{
|
|
2294
2823
|
"name": "input",
|
|
@@ -2334,7 +2863,9 @@
|
|
|
2334
2863
|
"emit_cloudevents_columns": "args.emit_cloudevents_columns"
|
|
2335
2864
|
}
|
|
2336
2865
|
},
|
|
2337
|
-
"extensions": [
|
|
2866
|
+
"extensions": [
|
|
2867
|
+
".avsc"
|
|
2868
|
+
],
|
|
2338
2869
|
"args": [
|
|
2339
2870
|
{
|
|
2340
2871
|
"name": "input",
|
|
@@ -2380,7 +2911,9 @@
|
|
|
2380
2911
|
"emit_cloudevents_columns": "args.emit_cloudevents_columns"
|
|
2381
2912
|
}
|
|
2382
2913
|
},
|
|
2383
|
-
"extensions": [
|
|
2914
|
+
"extensions": [
|
|
2915
|
+
".avsc"
|
|
2916
|
+
],
|
|
2384
2917
|
"args": [
|
|
2385
2918
|
{
|
|
2386
2919
|
"name": "input",
|
|
@@ -2424,7 +2957,10 @@
|
|
|
2424
2957
|
"avro_file": "output_file_path"
|
|
2425
2958
|
}
|
|
2426
2959
|
},
|
|
2427
|
-
"extensions": [
|
|
2960
|
+
"extensions": [
|
|
2961
|
+
".struct.json",
|
|
2962
|
+
".json"
|
|
2963
|
+
],
|
|
2428
2964
|
"args": [
|
|
2429
2965
|
{
|
|
2430
2966
|
"name": "input",
|
|
@@ -2456,7 +2992,9 @@
|
|
|
2456
2992
|
"avro_encoding": "args.avro_encoding"
|
|
2457
2993
|
}
|
|
2458
2994
|
},
|
|
2459
|
-
"extensions": [
|
|
2995
|
+
"extensions": [
|
|
2996
|
+
".avsc"
|
|
2997
|
+
],
|
|
2460
2998
|
"args": [
|
|
2461
2999
|
{
|
|
2462
3000
|
"name": "input",
|
|
@@ -2475,7 +3013,12 @@
|
|
|
2475
3013
|
"name": "--naming",
|
|
2476
3014
|
"type": "str",
|
|
2477
3015
|
"help": "Type naming convention",
|
|
2478
|
-
"choices": [
|
|
3016
|
+
"choices": [
|
|
3017
|
+
"snake",
|
|
3018
|
+
"camel",
|
|
3019
|
+
"pascal",
|
|
3020
|
+
"default"
|
|
3021
|
+
],
|
|
2479
3022
|
"required": false,
|
|
2480
3023
|
"default": "default"
|
|
2481
3024
|
},
|
|
@@ -2489,5 +3032,80 @@
|
|
|
2489
3032
|
],
|
|
2490
3033
|
"suggested_output_file_path": "{input_file_name}.struct.json",
|
|
2491
3034
|
"prompts": []
|
|
3035
|
+
},
|
|
3036
|
+
{
|
|
3037
|
+
"command": "s2x",
|
|
3038
|
+
"description": "Convert JSON Structure to XSD schema",
|
|
3039
|
+
"group": "1_Schemas",
|
|
3040
|
+
"function": {
|
|
3041
|
+
"name": "avrotize.structuretoxsd.convert_structure_to_xsd",
|
|
3042
|
+
"args": {
|
|
3043
|
+
"structure_schema_path": "input_file_path",
|
|
3044
|
+
"xml_file_path": "output_file_path",
|
|
3045
|
+
"target_namespace": "args.namespace"
|
|
3046
|
+
}
|
|
3047
|
+
},
|
|
3048
|
+
"extensions": [".struct.json", ".json"],
|
|
3049
|
+
"args": [
|
|
3050
|
+
{
|
|
3051
|
+
"name": "input",
|
|
3052
|
+
"type": "str",
|
|
3053
|
+
"nargs": "?",
|
|
3054
|
+
"help": "Path to the JSON Structure file (or read from stdin if omitted)",
|
|
3055
|
+
"required": false
|
|
3056
|
+
},
|
|
3057
|
+
{
|
|
3058
|
+
"name": "--out",
|
|
3059
|
+
"type": "str",
|
|
3060
|
+
"help": "Path to the XSD schema file",
|
|
3061
|
+
"required": false
|
|
3062
|
+
},
|
|
3063
|
+
{
|
|
3064
|
+
"name": "--struct",
|
|
3065
|
+
"type": "str",
|
|
3066
|
+
"help": "Deprecated: Path to the JSON Structure file (for backcompat)",
|
|
3067
|
+
"required": false
|
|
3068
|
+
},
|
|
3069
|
+
{
|
|
3070
|
+
"name": "--namespace",
|
|
3071
|
+
"type": "str",
|
|
3072
|
+
"help": "Target namespace for the XSD schema",
|
|
3073
|
+
"required": false
|
|
3074
|
+
}
|
|
3075
|
+
],
|
|
3076
|
+
"suggested_output_file_path": "{input_file_name}.xsd",
|
|
3077
|
+
"prompts": []
|
|
3078
|
+
},
|
|
3079
|
+
{
|
|
3080
|
+
"command": "struct2md",
|
|
3081
|
+
"description": "Convert JSON Structure schema to Markdown documentation",
|
|
3082
|
+
"group": "7_Utility",
|
|
3083
|
+
"function": {
|
|
3084
|
+
"name": "avrotize.structuretomd.convert_structure_to_markdown",
|
|
3085
|
+
"args": {
|
|
3086
|
+
"structure_schema_path": "input_file_path",
|
|
3087
|
+
"markdown_path": "output_file_path"
|
|
3088
|
+
}
|
|
3089
|
+
},
|
|
3090
|
+
"extensions": [
|
|
3091
|
+
".struct.json"
|
|
3092
|
+
],
|
|
3093
|
+
"args": [
|
|
3094
|
+
{
|
|
3095
|
+
"name": "input",
|
|
3096
|
+
"type": "str",
|
|
3097
|
+
"nargs": "?",
|
|
3098
|
+
"help": "Path to the JSON Structure schema file (or read from stdin if omitted)",
|
|
3099
|
+
"required": false
|
|
3100
|
+
},
|
|
3101
|
+
{
|
|
3102
|
+
"name": "--out",
|
|
3103
|
+
"type": "str",
|
|
3104
|
+
"help": "Output path for the Markdown documentation",
|
|
3105
|
+
"required": false
|
|
3106
|
+
}
|
|
3107
|
+
],
|
|
3108
|
+
"suggested_output_file_path": "{input_file_name}.md",
|
|
3109
|
+
"prompts": []
|
|
2492
3110
|
}
|
|
2493
|
-
]
|
|
3111
|
+
]
|