Skip to content

Commit aa1aefc

Browse files
committed
update: execution unit input schema
1 parent 9e267dc commit aa1aefc

File tree

36 files changed

+607
-33
lines changed

36 files changed

+607
-33
lines changed

dist/js/example/job.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,12 @@
149149
{
150150
"content": "K_POINTS automatic\n2 2 2 0 0 0",
151151
"rendered": "K_POINTS automatic\n2 2 2 0 0 0",
152-
"name": "pw_scf.in"
152+
"name": "pw_scf.in",
153+
"contextProviders": [
154+
{
155+
"name": "KGridFormDataManager"
156+
}
157+
]
153158
}
154159
],
155160
"monitors": [

dist/js/example/workflow.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,12 @@
9696
{
9797
"content": "K_POINTS automatic\n2 2 2 0 0 0",
9898
"rendered": "K_POINTS automatic\n2 2 2 0 0 0",
99-
"name": "pw_scf.in"
99+
"name": "pw_scf.in",
100+
"contextProviders": [
101+
{
102+
"name": "KGridFormDataManager"
103+
}
104+
]
100105
}
101106
],
102107
"monitors": [

dist/js/example/workflow/subworkflow.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,12 @@
7373
{
7474
"content": "K_POINTS automatic\n2 2 2 0 0 0",
7575
"rendered": "K_POINTS automatic\n2 2 2 0 0 0",
76-
"name": "pw_scf.in"
76+
"name": "pw_scf.in",
77+
"contextProviders": [
78+
{
79+
"name": "KGridFormDataManager"
80+
}
81+
]
7782
}
7883
],
7984
"monitors": [

dist/js/example/workflow/unit/execution.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@
4747
{
4848
"content": "K_POINTS automatic\n2 2 2 0 0 0",
4949
"rendered": "K_POINTS automatic\n2 2 2 0 0 0",
50-
"name": "pw_scf.in"
50+
"name": "pw_scf.in",
51+
"contextProviders": [
52+
{
53+
"name": "KGridFormDataManager"
54+
}
55+
]
5156
}
5257
],
5358
"monitors": [

dist/js/schema/job.json

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1525,7 +1525,8 @@
15251525
"required": [
15261526
"name",
15271527
"content",
1528-
"rendered"
1528+
"rendered",
1529+
"contextProviders"
15291530
],
15301531
"properties": {
15311532
"name": {
@@ -1540,6 +1541,23 @@
15401541
"description": "Rendered content of the input file. e.g. &CONTROL calculation='scf' ...",
15411542
"type": "string"
15421543
},
1544+
"contextProviders": {
1545+
"type": "array",
1546+
"items": {
1547+
"$schema": "http://json-schema.org/draft-07/schema#",
1548+
"title": "runtime item name object schema",
1549+
"type": "object",
1550+
"required": [
1551+
"name"
1552+
],
1553+
"properties": {
1554+
"name": {
1555+
"description": "The name of this item. e.g. scf_accuracy",
1556+
"type": "string"
1557+
}
1558+
}
1559+
}
1560+
},
15431561
"isManuallyChanged": {
15441562
"type": "boolean",
15451563
"default": false
@@ -3780,7 +3798,8 @@
37803798
"required": [
37813799
"name",
37823800
"content",
3783-
"rendered"
3801+
"rendered",
3802+
"contextProviders"
37843803
],
37853804
"properties": {
37863805
"name": {
@@ -3795,6 +3814,23 @@
37953814
"description": "Rendered content of the input file. e.g. &CONTROL calculation='scf' ...",
37963815
"type": "string"
37973816
},
3817+
"contextProviders": {
3818+
"type": "array",
3819+
"items": {
3820+
"$schema": "http://json-schema.org/draft-07/schema#",
3821+
"title": "runtime item name object schema",
3822+
"type": "object",
3823+
"required": [
3824+
"name"
3825+
],
3826+
"properties": {
3827+
"name": {
3828+
"description": "The name of this item. e.g. scf_accuracy",
3829+
"type": "string"
3830+
}
3831+
}
3832+
}
3833+
},
37983834
"isManuallyChanged": {
37993835
"type": "boolean",
38003836
"default": false

dist/js/schema/properties_directory/non_scalar/workflow.json

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,7 +1520,8 @@
15201520
"required": [
15211521
"name",
15221522
"content",
1523-
"rendered"
1523+
"rendered",
1524+
"contextProviders"
15241525
],
15251526
"properties": {
15261527
"name": {
@@ -1535,6 +1536,23 @@
15351536
"description": "Rendered content of the input file. e.g. &CONTROL calculation='scf' ...",
15361537
"type": "string"
15371538
},
1539+
"contextProviders": {
1540+
"type": "array",
1541+
"items": {
1542+
"$schema": "http://json-schema.org/draft-07/schema#",
1543+
"title": "runtime item name object schema",
1544+
"type": "object",
1545+
"required": [
1546+
"name"
1547+
],
1548+
"properties": {
1549+
"name": {
1550+
"description": "The name of this item. e.g. scf_accuracy",
1551+
"type": "string"
1552+
}
1553+
}
1554+
}
1555+
},
15381556
"isManuallyChanged": {
15391557
"type": "boolean",
15401558
"default": false
@@ -3775,7 +3793,8 @@
37753793
"required": [
37763794
"name",
37773795
"content",
3778-
"rendered"
3796+
"rendered",
3797+
"contextProviders"
37793798
],
37803799
"properties": {
37813800
"name": {
@@ -3790,6 +3809,23 @@
37903809
"description": "Rendered content of the input file. e.g. &CONTROL calculation='scf' ...",
37913810
"type": "string"
37923811
},
3812+
"contextProviders": {
3813+
"type": "array",
3814+
"items": {
3815+
"$schema": "http://json-schema.org/draft-07/schema#",
3816+
"title": "runtime item name object schema",
3817+
"type": "object",
3818+
"required": [
3819+
"name"
3820+
],
3821+
"properties": {
3822+
"name": {
3823+
"description": "The name of this item. e.g. scf_accuracy",
3824+
"type": "string"
3825+
}
3826+
}
3827+
}
3828+
},
37933829
"isManuallyChanged": {
37943830
"type": "boolean",
37953831
"default": false

dist/js/schema/property/holder.json

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3528,7 +3528,8 @@
35283528
"required": [
35293529
"name",
35303530
"content",
3531-
"rendered"
3531+
"rendered",
3532+
"contextProviders"
35323533
],
35333534
"properties": {
35343535
"name": {
@@ -3543,6 +3544,23 @@
35433544
"description": "Rendered content of the input file. e.g. &CONTROL calculation='scf' ...",
35443545
"type": "string"
35453546
},
3547+
"contextProviders": {
3548+
"type": "array",
3549+
"items": {
3550+
"$schema": "http://json-schema.org/draft-07/schema#",
3551+
"title": "runtime item name object schema",
3552+
"type": "object",
3553+
"required": [
3554+
"name"
3555+
],
3556+
"properties": {
3557+
"name": {
3558+
"description": "The name of this item. e.g. scf_accuracy",
3559+
"type": "string"
3560+
}
3561+
}
3562+
}
3563+
},
35463564
"isManuallyChanged": {
35473565
"type": "boolean",
35483566
"default": false
@@ -5783,7 +5801,8 @@
57835801
"required": [
57845802
"name",
57855803
"content",
5786-
"rendered"
5804+
"rendered",
5805+
"contextProviders"
57875806
],
57885807
"properties": {
57895808
"name": {
@@ -5798,6 +5817,23 @@
57985817
"description": "Rendered content of the input file. e.g. &CONTROL calculation='scf' ...",
57995818
"type": "string"
58005819
},
5820+
"contextProviders": {
5821+
"type": "array",
5822+
"items": {
5823+
"$schema": "http://json-schema.org/draft-07/schema#",
5824+
"title": "runtime item name object schema",
5825+
"type": "object",
5826+
"required": [
5827+
"name"
5828+
],
5829+
"properties": {
5830+
"name": {
5831+
"description": "The name of this item. e.g. scf_accuracy",
5832+
"type": "string"
5833+
}
5834+
}
5835+
}
5836+
},
58015837
"isManuallyChanged": {
58025838
"type": "boolean",
58035839
"default": false

dist/js/schema/software_directory/modeling/unit/execution.json

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,8 @@
529529
"required": [
530530
"name",
531531
"content",
532-
"rendered"
532+
"rendered",
533+
"contextProviders"
533534
],
534535
"oneOf": [
535536
{
@@ -549,6 +550,23 @@
549550
"description": "Rendered content of the input file. e.g. &CONTROL calculation='scf' ...",
550551
"type": "string"
551552
},
553+
"contextProviders": {
554+
"type": "array",
555+
"items": {
556+
"$schema": "http://json-schema.org/draft-07/schema#",
557+
"title": "runtime item name object schema",
558+
"type": "object",
559+
"required": [
560+
"name"
561+
],
562+
"properties": {
563+
"name": {
564+
"description": "The name of this item. e.g. scf_accuracy",
565+
"type": "string"
566+
}
567+
}
568+
}
569+
},
552570
"isManuallyChanged": {
553571
"type": "boolean",
554572
"default": false
@@ -557,7 +575,8 @@
557575
"required": [
558576
"name",
559577
"content",
560-
"rendered"
578+
"rendered",
579+
"contextProviders"
561580
]
562581
},
563582
{
@@ -592,6 +611,23 @@
592611
"description": "Rendered content of the input file. e.g. &CONTROL calculation='scf' ...",
593612
"type": "string"
594613
},
614+
"contextProviders": {
615+
"type": "array",
616+
"items": {
617+
"$schema": "http://json-schema.org/draft-07/schema#",
618+
"title": "runtime item name object schema",
619+
"type": "object",
620+
"required": [
621+
"name"
622+
],
623+
"properties": {
624+
"name": {
625+
"description": "The name of this item. e.g. scf_accuracy",
626+
"type": "string"
627+
}
628+
}
629+
}
630+
},
595631
"isManuallyChanged": {
596632
"type": "boolean",
597633
"default": false

0 commit comments

Comments
 (0)