-
Notifications
You must be signed in to change notification settings - Fork 135
/
Copy pathbuildConfigurationSchema.json
945 lines (945 loc) · 36.8 KB
/
buildConfigurationSchema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "DBB Build Configuration Variables",
"description": "DBB Build configuration variables used in the orchestration of DBB builds.",
"type": "object",
"additionalProperties": false,
"required": ["version"],
"properties": {
"version": {
"type": "string",
"description": "The version of DBB build configuration schema being used for this configuration. This field does not validate anything when used inside of an IDE. It will only be validated at runtime."
},
"include": {
"type": ["array", "null"],
"description": "Included files to merge into configuration.",
"items": {
"if": { "type": "object", "required": ["application"] },
"then": {
"type": "object",
"description": "Application Include",
"additionalProperties": false,
"required": ["file", "application"],
"properties": {
"application": {
"type": "string",
"description": "The path of a file to be included."
},
"file": { "$ref": "#/$defs/file" }
}
},
"else": {
"type": "object",
"description": "File Include",
"additionalProperties": false,
"properties": { "file": { "$ref": "#/$defs/file" } }
}
}
},
"variables": {
"$ref": "#/$defs/variables",
"description": "Global variables."
},
"lifecycles": {
"type": ["array", "null"],
"description": "Lifecycle configurations",
"items": {
"type": "object",
"description": "Full build configuration",
"additionalProperties": false,
"required": ["lifecycle"],
"properties": {
"lifecycle": {
"type": "string",
"description": "Name of the build configuration"
},
"comment": { "$ref": "#/$defs/comment" },
"variables": { "$ref": "#/$defs/variables" },
"cli": {
"type": "object",
"description": "Create a new command for the DBB CLI",
"additionalProperties": false,
"properties": {
"usage": {
"type": "string",
"description": "DBB CLI Command string."
},
"options": {
"type": "array",
"description": "DBB CLI Options",
"items": {
"type": "object",
"description": "DBB CLI Option",
"additionalProperties": false,
"anyOf": [
{ "required": ["longOption"] },
{ "required": ["option"] }
],
"properties": {
"option": {
"type": "string",
"description": "Option shorthand keyword"
},
"longOption": {
"type": "string",
"description": "Option keyword"
},
"hasArg": {
"type": "boolean",
"description": "Accepts an argument with the option"
},
"description": {
"type": "string",
"description": "Description of the CLI option"
}
}
}
}
}
},
"tasks": {
"type": ["array", "null"],
"description": "Specify which tasks a build configuration will use",
"items": {
"if": { "type": "string" },
"then": { "$ref": "#/$defs/taskString" },
"else": {
"if": { "type": ["object"], "required": ["class"] },
"then": { "$ref": "#/$defs/classTask" },
"else": {
"if": { "type": ["object"] },
"then": { "$ref": "#/$defs/basicTask" },
"else": { "type": ["object", "string"] }
}
}
}
}
}
}
},
"tasks": {
"type": ["array", "null"],
"description": "Reusable task configurations",
"items": {
"if": { "type": "object", "required": ["stage"] },
"then": {
"type": "object",
"description": "List task configuration",
"additionalProperties": false,
"required": ["stage", "tasks"],
"properties": {
"stage": {
"type": "string",
"description": "Name of the task list."
},
"comment": { "$ref": "#/$defs/comment" },
"condition": { "$ref": "#/$defs/condition" },
"tasks": {
"type": ["array", "null"],
"items": {
"if": { "type": "string" },
"then": { "$ref": "#/$defs/task" },
"else": {
"if": { "type": "object", "required": ["language"] },
"then": { "$ref": "#/$defs/languageTask" },
"else": {
"if": { "type": "object", "required": ["class"] },
"then": { "$ref": "#/$defs/classTask" },
"else": { "$ref": "#/$defs/basicTask" }
}
}
}
}
}
},
"else": {
"if": { "type": "object", "required": ["language"] },
"then": { "$ref": "#/$defs/languageTask" },
"else": {
"if": { "type": "object", "required": ["class"] },
"then": { "$ref": "#/$defs/classTask" },
"else": { "$ref": "#/$defs/basicTask" }
}
}
}
}
},
"$defs": {
"file": { "type": "string", "description": "The path of a file." },
"task": {
"type": "string",
"description": "Name of task that maps to a script"
},
"type": {
"type": "string",
"description": "Type of an object, like which type of task it is."
},
"comment": {
"type": "string",
"description": "Comment printed to standard output during build execution"
},
"condition": {
"type": ["object", "string"],
"properties": {
"eval": {
"type": ["string", "array"],
"description": "Conditional statement that will be evaluated by the JEXL Engine.",
"items": {
"type": "string",
"description": "Conditional statement that will be evaluated by the JEXL Engine. All statements must evaluate to true."
}
},
"exists": {
"type": ["string", "array"],
"description": "Condition is only true if the provided property exists. Evaluations are run after this step if it resolves to true.",
"items": {
"type": "string",
"description": "Condition is only true if the all provided properties exist. Evaluations are run after this step if it resolves to true."
}
},
"notExists": {
"type": ["string", "array"],
"description": "Condition is only true if the provided property does not exist. Evaluations are run after this step if it resolves to true.",
"items": {
"type": "string",
"description": "Condition is only true if the all provided properties do not exist. Evaluations are run after this step if it resolves to true."
}
}
}
},
"maxRC": {
"type": ["number", "string"],
"description": "Maximum tolerable RC before throwing an error"
},
"volser": {
"type": "string",
"description": "The volume serial of the source dataset."
},
"step": {
"type": "string",
"description": "Name of the step"
},
"filePattern": {
"type": "string",
"description": "A glob file pattern for conditional matching"
},
"forFiles": {
"if": { "type": ["string"] },
"then": { "$ref": "#/$defs/filePattern" },
"else": {
"type": "array",
"description": "Rule that applies to a list of patterns",
"items": { "$ref": "#/$defs/filePattern" }
}
},
"variableName": { "type": "string", "description": "Variable name" },
"variableValue": {
"description": "Variable value",
"type": ["string", "boolean", "number", "array", "object"]
},
"variables": {
"type": ["array", "null"],
"description": "",
"items": {
"type": "object",
"description": "Properties provided to the current context",
"required": ["name"],
"properties": {
"name": { "$ref": "#/$defs/variableName" },
"value": { "$ref": "#/$defs/variableValue" },
"forFiles": { "$ref": "#/$defs/forFiles" },
"delimiter": {
"description": "The delimiter used when constructing append conditionals or appending lists to this value.",
"type": "string"
},
"restricted": {
"type": "boolean",
"description": "If true, this variable cannot be overridden by included files like the application configuration. Default: false"
},
"select": {
"type": "array",
"description": "",
"items": {
"type": "object",
"description": "A condition and a value to associate with it.",
"required": ["condition", "value"],
"properties": {
"condition": { "$ref": "#/$defs/condition" },
"value": { "$ref": "#/$defs/variableValue" }
}
}
},
"append": {
"type": "array",
"description": "",
"items": {
"type": "object",
"description": "A condition and a value to associate with it.",
"required": ["condition", "value"],
"properties": {
"condition": { "$ref": "#/$defs/condition" },
"value": {
"type": ["string", "boolean", "number", "array"],
"description": "An appended variable value."
}
}
}
}
}
}
},
"taskString": {
"type": "string",
"description": "Name only string specifying a task script with the same name"
},
"basicTask": {
"type": "object",
"description": "Basic task configuration",
"additionalProperties": false,
"required": ["task"],
"properties": {
"task": { "$ref": "#/$defs/task" },
"comment": { "$ref": "#/$defs/comment" },
"condition": { "$ref": "#/$defs/condition" },
"script": {
"type": "string",
"description": "Location of the script relative to source directory"
},
"variables": { "$ref": "#/$defs/variables" }
}
},
"classTask": {
"type": "object",
"description": "Java task configuration",
"additionalProperties": false,
"required": ["task", "class"],
"properties": {
"task": { "$ref": "#/$defs/task" },
"comment": { "$ref": "#/$defs/comment" },
"condition": { "$ref": "#/$defs/condition" },
"class": { "type": "string", "description": "Java class package" },
"variables": { "$ref": "#/$defs/variables" }
}
},
"copyOptions": {
"type": "string",
"description": "For hfs, hfs and dataset, dataset 'cp' options"
},
"languageTask": {
"type": "object",
"description": "Language task configuration",
"additionalProperties": false,
"required": ["language"],
"properties": {
"language": {
"type": "string",
"description": "Name of the language task"
},
"comment": { "$ref": "#/$defs/comment" },
"condition": { "$ref": "#/$defs/condition" },
"sources": { "$ref": "#/$defs/forFiles" },
"datasets": {
"type": "array",
"description": "Datasets to be created during build process",
"items": {
"type": "object",
"description": "Dataset definition",
"additionalProperties": false,
"properties": {
"name": { "type": "string" },
"options": {
"type": "string",
"description": "Space delimited BPXWDYN options"
}
}
}
},
"options": {
"type": "string",
"description": "BPXWDYN creation options"
},
"variables": { "$ref": "#/$defs/variables" },
"steps": {
"type": ["array", "null"],
"description": "List of steps for the task to execute",
"items": {
"if": {
"required": ["type"],
"properties": {
"type": { "type": "string", "pattern": "^[cC][oO][pP][yY]$" }
}
},
"then": {
"type": "object",
"description": "Copy step configuration",
"additionalProperties": false,
"required": ["step", "type", "source", "target"],
"properties": {
"step": { "$ref": "#/$defs/step" },
"type": {
"$ref": "#/$defs/type",
"description": "Type of the step execution e.g. copy, mvs, tso, etc."
},
"source": {
"type": "string",
"description": "Source file or dataset"
},
"target": {
"type": "string",
"description": "Target file or dataset"
},
"comment": { "$ref": "#/$defs/comment" },
"condition": { "$ref": "#/$defs/condition" },
"maxRC": { "$ref": "#/$defs/maxRC" },
"options": {
"if": { "type": ["string"] },
"then": { "$ref": "#/$defs/copyOptions" },
"else": {
"type": "array",
"description": "",
"items": { "$ref": "#/$defs/copyOptions" }
}
},
"append": {
"type": ["boolean", "string"],
"description": "Appends output to the target instead of overwriting"
},
"volser": { "$ref": "#/$defs/volser" },
"sourceEncoding": {
"type": "string",
"description": "Expected encoding of the source"
},
"targetEncoding": {
"type": "string",
"description": "Desired encoding of the target"
},
"copyMode": {
"type": "string",
"description": "Data copy mode, e.g. TEXT, BINARY"
},
"deployType": {
"type": "string",
"description": "The CopyToPDS deploy type"
},
"dependencyCopy": {
"type": "array",
"description": "Configuration options for copying dependencies",
"items": {
"type": "object",
"description": "",
"additionalProperties": false,
"properties": {
"search": {
"type": "string",
"description": "Search path configuration string. Usage: `search:{SOURCEDIR}?path={GLOB_EXTENSIONS}`"
},
"mappings": {
"type": "array",
"description": "CopyToPDS mappings",
"items": {
"type": "object",
"description": "",
"additionalProperties": false,
"properties": {
"source": {
"type": "string",
"description": "Glob expression matching searched files"
},
"dataset": {
"type": "string",
"description": "Target dataset"
},
"copyMode": {
"type": "string",
"description": "The CopyToPDS CopyMode"
},
"volser": { "$ref": "#/$defs/volser" }
}
}
}
}
}
}
}
},
"else": {
"if": {
"required": ["type"],
"properties": {
"type": { "type": "string", "pattern": "^[mM][vV][sS]$" }
}
},
"then": {
"type": "object",
"description": "mvs Exec step configuration",
"additionalProperties": false,
"required": ["step", "type", "pgm"],
"properties": {
"step": { "$ref": "#/$defs/step" },
"type": { "$ref": "#/$defs/type" },
"comment": { "$ref": "#/$defs/comment" },
"condition": { "$ref": "#/$defs/condition" },
"maxRC": { "$ref": "#/$defs/maxRC" },
"pgm": {
"type": "string",
"description": "Name of the MVS program to execute"
},
"parm": {
"type": "string",
"description": "Parameters for the MVS program"
},
"ddnameSubstitution": {
"type": "string",
"description": "DDName substitution list for IBM compilers"
},
"free": {
"type": ["boolean", "string"],
"description": "Free all program allocated temporary datasets. Default: false"
},
"dds": { "$ref": "#/$defs/dds" }
}
},
"else": {
"if": {
"required": ["type"],
"properties": {
"type": {
"type": "string",
"pattern": "^([tT][sS][oO]|[iI][sS][pP][fF])$"
}
}
},
"then": {
"type": "object",
"description": "TSO/ISPF step configuration",
"additionalProperties": false,
"required": ["step", "type", "command"],
"properties": {
"step": { "$ref": "#/$defs/step" },
"type": { "$ref": "#/$defs/type" },
"comment": { "$ref": "#/$defs/comment" },
"condition": { "$ref": "#/$defs/condition" },
"maxRC": { "$ref": "#/$defs/maxRC" },
"command": {
"type": "string",
"description": "TSO/ISPF command"
},
"options": {
"type": "string",
"description": "Set the options to pass to the command"
},
"confDir": {
"type": "string",
"description": "The configuration directory where runIspf.sh could be found."
},
"log": {
"type": "string",
"description": "Set the path to the log file"
},
"logLevel": {
"type": ["number", "string"],
"description": "Set the log level for the interactive Gateway"
},
"logEncoding": {
"type": "string",
"description": "Set the encoding for the log file this command creates"
},
"keep": {
"type": ["boolean", "string"],
"description": "Set if the REXX command data set should be kept. By default this data set will be deleted after execution."
},
"gateway": {
"type": "string",
"description": "Set the gateway type, either interactive or legacy gateway"
},
"reuse": {
"type": ["boolean", "string"],
"description": "Set whether an existing TSO/ISPF session should be used"
},
"procedure": {
"type": "string",
"description": "Set the procedure name for the interactive Gateway"
},
"account": {
"type": "string",
"description": "Set the account number for the interactive Gateway"
},
"group": {
"type": "string",
"description": "Set the group ID for the interactive Gateway"
},
"region": {
"type": ["string", "number"],
"description": "Set the region size for the interactive Gateway"
},
"dds": { "$ref": "#/$defs/dds" }
}
},
"else": {
"if": {
"required": ["type"],
"properties": {
"type": { "type": "string", "pattern": "^[jJ][oO][bB]$" }
}
},
"then": {
"type": "object",
"description": "job step configuration",
"additionalProperties": false,
"required": ["step", "type"],
"properties": {
"step": { "$ref": "#/$defs/step" },
"type": { "$ref": "#/$defs/type" },
"comment": { "$ref": "#/$defs/comment" },
"condition": { "$ref": "#/$defs/condition" },
"maxRC": { "$ref": "#/$defs/maxRC" },
"source": {
"type": "string",
"description": "Source file or dataset member that contains the JCL to submit"
},
"text": {
"type": "string",
"description": "JCL source contained in a string"
},
"timeout": {
"type": ["number", "string"],
"description": "Number of seconds to wait until the JobExec times out. Default 1 hour"
},
"volser": { "$ref": "#/$defs/volser" },
"sourceEncoding": {
"type": "string",
"description": "The codepage of the source JCL"
},
"logs": {
"type": "array",
"description": "list of log definitions used to save JCL output to USS",
"items": {
"type": "object",
"additionalProperties": false,
"required": ["log", "ddname"],
"properties": {
"log": {
"type": "string",
"description": "USS file to save the output to"
},
"ddname": {
"type": "string",
"description": "The name of the DD to save. Use '*' to save all DD output"
},
"sourceEncoding": {
"type": "string",
"description": "The codepage of the JES output DD"
},
"logEncoding": {
"type": "string",
"description": "The codepage for the copied log"
}
}
}
}
}
},
"else": {
"if": {
"required": ["type"],
"properties": {
"type": {
"type": "string",
"pattern": "^[uU][nN][iI][xX]$"
}
}
},
"then": {
"type": "object",
"description": "unix step configuration",
"additionalProperties": false,
"required": ["step", "type", "command"],
"properties": {
"step": { "$ref": "#/$defs/step" },
"type": { "$ref": "#/$defs/type" },
"comment": { "$ref": "#/$defs/comment" },
"condition": { "$ref": "#/$defs/condition" },
"maxRC": { "$ref": "#/$defs/maxRC" },
"command": {
"type": "string",
"description": "Unix command to execute"
},
"options": {
"type": "array",
"description": "Unix options",
"items": {
"type": "string",
"description": "Unix option"
}
},
"log": {
"type": "string",
"description": "File name to write stdout to"
},
"logEncoding": {
"type": "string",
"description": "Log codepage"
},
"errorLog": {
"type": "string",
"description": "File name to write stderr to"
},
"errorEncoding": {
"type": "string",
"description": "Error log encoding"
},
"mergeErrors": {
"type": ["boolean", "string"],
"description": "Flag indicating to write stderr to output log file"
},
"workingDirectory": {
"type": "string",
"description": "The Unix command working directory"
},
"input": {
"type": "string",
"description": "Build report input file path"
},
"outputs": {
"type": "array",
"description": "Build report outputs",
"items": {
"type": "object",
"description": "Build report output",
"additionalProperties": false,
"required": ["file"],
"properties": {
"file": {
"type": "string",
"description": "Build report output file path"
},
"root": {
"type": "string",
"description": "Root directory for the file (optional)"
},
"deployType": {
"type": "string",
"description": "Build report deployment type"
}
}
}
}
}
},
"else": {
"if": {
"required": ["type"],
"properties": {
"type": {
"type": "string",
"pattern": "^[tT][aA][sS][kK]$"
}
}
},
"then": {
"type": "object",
"description": "task step configuration",
"additionalProperties": false,
"required": ["step", "type"],
"properties": {
"step": { "$ref": "#/$defs/step" },
"type": { "$ref": "#/$defs/type" },
"comment": { "$ref": "#/$defs/comment" },
"condition": { "$ref": "#/$defs/condition" },
"maxRC": { "$ref": "#/$defs/maxRC" },
"name": {
"type": "string",
"description": "Name of pre-defined task to execute"
},
"script": {
"type": "string",
"description": "Absolute or relative path to Groovy implementation"
},
"class": {
"type": "string",
"description": "Fully qualified Java class name of implementation"
},
"variables": { "$ref": "#/$defs/variables" }
}
},
"else": {
"if": {
"required": ["step", "type"]
},
"then": {
"patternProperties": {
"^(?!(type)$).*$": {}
},
"additionalProperties": false,
"errorMessage": "Invalid type of step. Options are: copy, mvs, ispf, tso, job, unix, task.",
"parserErrorMessage": {
"additionalProperties": "{0}: Invalid type of step. Options are: copy, mvs, ispf, tso, job, unix, task."
}
},
"else": {
"type": "object",
"required": ["step", "type"]
}
}
}
}
}
}
}
}
}
}
},
"name": {
"type": "string",
"description": "DD name. Exclude to concatenate to previous named DD statement"
},
"options": {
"type": "string",
"description": "The BPXWDYN allocation options"
},
"instream": {
"type": "string",
"description": "MVSExec DD instream data"
},
"pass": {
"type": ["boolean", "string"],
"description": "Flag indicating to pass a temporary DD to later MVS steps"
},
"input": {
"type": ["boolean", "string"],
"description": "Flag to add DD to build report as an input"
},
"output": {
"type": ["boolean", "string"],
"description": "Flag to add DD to build repost as an output"
},
"deployType": {
"type": "string",
"description": "Build report deploy type for output DD statements"
},
"log": {
"type": "string",
"description": "Copies the DD statement content to the output directory on USS file"
},
"logAppend": {
"type": ["boolean", "string"],
"description": "Flag indicating if existing log file should be overwritten or appended."
},
"logEncoding": {
"type": "string",
"description": "The codepage for the copied log file"
},
"logMode": {
"type": "string",
"description": "The CopyMode for the copied log file"
},
"scan": {
"type": ["boolean", "string"],
"description": "Flag indicating that an output load module should be scanned"
},
"dds": {
"type": "array",
"description": "",
"items": {
"if": { "type": "object", "anyOf": [
{"required": ["path", "dsn"]},
{"required": ["dsn", "ref"]},
{"required": ["path", "ref"]}
] },
"then": {
"patternProperties": {
"^(?!(path|ref|dsn)$).*$": {}
},
"additionalProperties": false,
"errorMessage": "Invalid DD: path, dsn, and ref are mutually exclusive variables.",
"parserErrorMessage": {
"additionalProperties": "{0}: Invalid DD: path, dsn, and ref are mutually exclusive variables."
}
},
"else": {
"if": { "type": "object", "required": ["path"] },
"then": {
"type": "object",
"description": "Path DD Statement",
"additionalProperties": false,
"properties": {
"name": { "$ref": "#/$defs/name" },
"condition": { "$ref": "#/$defs/condition" },
"options": { "$ref": "#/$defs/options" },
"instream": { "$ref": "#/$defs/instream" },
"pass": { "$ref": "#/$defs/pass" },
"input": { "$ref": "#/$defs/input" },
"output": { "$ref": "#/$defs/output" },
"deployType": { "$ref": "#/$defs/deployType" },
"log": { "$ref": "#/$defs/log" },
"logAppend": { "$ref": "#/$defs/logAppend" },
"logEncoding": { "$ref": "#/$defs/logEncoding" },
"logMode": { "$ref": "#/$defs/logMode" },
"scan": { "$ref": "#/$defs/scan" },
"path": {
"type": "string",
"description": "USS file path of DD statement. Mutually exclusive with dsn"
}
}
},
"else": {
"if": { "required": ["ref"] },
"then": {
"type": "object",
"description": "Ref DD Statement",
"additionalProperties": false,
"properties": {
"name": { "$ref": "#/$defs/name" },
"condition": { "$ref": "#/$defs/condition" },
"options": { "$ref": "#/$defs/options" },
"instream": { "$ref": "#/$defs/instream" },
"pass": { "$ref": "#/$defs/pass" },
"input": { "$ref": "#/$defs/input" },
"output": { "$ref": "#/$defs/output" },
"deployType": { "$ref": "#/$defs/deployType" },
"log": { "$ref": "#/$defs/log" },
"logAppend": { "$ref": "#/$defs/logAppend" },
"logEncoding": { "$ref": "#/$defs/logEncoding" },
"logMode": { "$ref": "#/$defs/logMode" },
"scan": { "$ref": "#/$defs/scan" },
"ref": {
"type": "string",
"description": "Reference to the DDName of a previously allocated DDStatement to use as input. Typically used for concatenation purposes."
}
}
},
"else": {
"type": "object",
"description": "Dsn DD Statement",
"additionalProperties": false,
"properties": {
"name": { "$ref": "#/$defs/name" },
"condition": { "$ref": "#/$defs/condition" },
"options": { "$ref": "#/$defs/options" },
"instream": { "$ref": "#/$defs/instream" },
"pass": { "$ref": "#/$defs/pass" },
"input": { "$ref": "#/$defs/input" },
"output": { "$ref": "#/$defs/output" },
"deployType": { "$ref": "#/$defs/deployType" },
"log": { "$ref": "#/$defs/log" },
"logAppend": { "$ref": "#/$defs/logAppend" },
"logEncoding": { "$ref": "#/$defs/logEncoding" },
"logMode": { "$ref": "#/$defs/logMode" },
"scan": { "$ref": "#/$defs/scan" },
"dsn": {
"type": "string",
"description": "The dataset to be allocated. Exclude to create a temporary DD"
},
"append": {
"type": ["boolean", "string"],
"description": "Appends the output to the log file."
}
}
}
}
}
}
}
}
}