You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'Provide a name for your design file. This name will help you identify the file more easily. You can also change the name of your design after importing it.'
// "Select the type of design you are uploading. The 'Design Type' determines the format, structure, and content of the file you are uploading. Choose the appropriate design type that matches the nature of your file. Checkout https://docs.meshery.io/guides/configuration-management/creating-a-meshery-design to learn more about designs"
18
+
// },
19
+
20
+
uploadType: {
21
+
title: 'Upload method',
22
+
enum: ['File Upload','URL Import'],
23
+
default: 'URL Import',
24
+
'x-rjsf-grid-area': '12',
16
25
description:
17
-
"Select the type of design you are uploading. The 'Design Type' determines the format, structure, and content of the file you are uploading. Choose the appropriate design type that matches the nature of your file. Checkout https://docs.meshery.io/guides/configuration-management/creating-a-meshery-design to learn more about designs"
26
+
"Choose the method you prefer to upload your design file. Select 'File Upload' if you have the file on your local system, or 'URL Import' if you have the file hosted online."
18
27
}
19
28
},
29
+
20
30
allOf: [
21
31
{
22
32
if: {
23
33
properties: {
24
-
designType: {
25
-
const: 'Helm Chart'
34
+
uploadType: {
35
+
const: 'File Upload'
26
36
}
27
37
}
28
38
},
29
39
then: {
30
40
properties: {
31
-
uploadType: {
32
-
title: 'Upload method',
33
-
enum: ['File Upload','URL Import'],
34
-
default: 'URL Import',
35
-
'x-rjsf-grid-area': '12',
36
-
description:
37
-
"Choose the method you prefer to upload your Helm Chart design file. Select 'File Upload' if you have the file on your local system, or 'URL Import' if you have the file hosted online."
41
+
file: {
42
+
type: 'string',
43
+
format: 'file',
44
+
description: 'Browse the file from your file system',
45
+
'x-rjsf-grid-area': '12'
38
46
}
39
47
},
40
-
allOf: [
41
-
{
42
-
if: {
43
-
properties: {
44
-
uploadType: {
45
-
const: 'File Upload'
46
-
}
47
-
}
48
-
},
49
-
then: {
50
-
properties: {
51
-
file: {
52
-
type: 'string',
53
-
format: 'file',
54
-
description: 'Browse the Helm Chart file from your file system',
55
-
'x-rjsf-grid-area': '12'
56
-
}
57
-
},
58
-
required: ['file']
59
-
}
60
-
},
61
-
{
62
-
if: {
63
-
properties: {
64
-
uploadType: {
65
-
const: 'URL Import'
66
-
}
67
-
}
68
-
},
69
-
then: {
70
-
properties: {
71
-
url: {
72
-
type: 'string',
73
-
format: 'uri',
74
-
title: 'URL',
75
-
description:
76
-
'Provide the URL of the Helm Chart design file you want to import. This should be a direct URL to the file, for example: https://raw.github.com/your-design-file.yaml',
77
-
'x-rjsf-grid-area': '12'
78
-
}
79
-
},
80
-
required: ['url']
81
-
}
82
-
}
83
-
],
84
-
required: ['uploadType']
48
+
required: ['file']
85
49
}
86
50
},
87
51
{
88
52
if: {
89
53
properties: {
90
-
designType: {
91
-
not: {
92
-
const: 'Helm Chart'
93
-
}
54
+
uploadType: {
55
+
const: 'URL Import'
94
56
}
95
57
}
96
58
},
97
59
then: {
98
60
properties: {
99
-
uploadType: {
100
-
title: 'Upload method',
101
-
enum: ['File Upload','URL Import'],
102
-
default: 'URL Import',
103
-
'x-rjsf-grid-area': '12',
61
+
url: {
62
+
type: 'string',
63
+
format: 'uri',
64
+
title: 'URL',
104
65
description:
105
-
"Choose the method you prefer to upload your design file. Select 'File Upload' if you have the file on your local system, or 'URL Import' if you have the file hosted online."
66
+
'Provide the URL of the file you want to import. This should be a direct URL to the file, for example: https://raw.github.com/your-design-file.yaml',
67
+
'x-rjsf-grid-area': '12'
106
68
}
107
69
},
108
-
allOf: [
109
-
{
110
-
if: {
111
-
properties: {
112
-
uploadType: {
113
-
const: 'File Upload'
114
-
}
115
-
}
116
-
},
117
-
then: {
118
-
properties: {
119
-
file: {
120
-
type: 'string',
121
-
format: 'file',
122
-
description: 'Browse the design file from your file system',
123
-
'x-rjsf-grid-area': '12'
124
-
}
125
-
},
126
-
required: ['file']
127
-
}
128
-
},
129
-
{
130
-
if: {
131
-
properties: {
132
-
uploadType: {
133
-
const: 'URL Import'
134
-
}
135
-
}
136
-
},
137
-
then: {
138
-
properties: {
139
-
url: {
140
-
type: 'string',
141
-
format: 'uri',
142
-
title: 'URL',
143
-
description:
144
-
'Provide the URL of the design file you want to import. This should be a direct URL to the file, for example: https://raw.github.com/your-design-file.yaml',
0 commit comments