Skip to content

Commit cca424e

Browse files
committed
enum instead of const
1 parent 400e5c9 commit cca424e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

services/static-webserver/client/source/resource/schemas/product-ui.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
{
2222
"type": "object",
2323
"properties": {
24-
"resourceType": { "const": "study" },
24+
"resourceType": { "enum": ["study"] },
2525
"title": { "type": "string" },
2626
"icon": { "type": "string" },
2727
"newStudyLabel": { "type": "string" },
@@ -32,7 +32,7 @@
3232
{
3333
"type": "object",
3434
"properties": {
35-
"resourceType": { "const": "template" },
35+
"resourceType": { "enum": ["template"] },
3636
"expectedTemplateLabel": { "type": "string" },
3737
"title": { "type": "string" },
3838
"icon": { "type": "string" },
@@ -45,7 +45,7 @@
4545
{
4646
"type": "object",
4747
"properties": {
48-
"resourceType": { "const": "service" },
48+
"resourceType": { "enum": ["service"] },
4949
"expectedKey": { "type": "string" },
5050
"title": { "type": "string" },
5151
"icon": { "type": "string" },
@@ -60,7 +60,7 @@
6060
"properties": {
6161
"showDisabled": {
6262
"type": "boolean",
63-
"const": true
63+
"enum": [true]
6464
},
6565
"title": { "type": "string" },
6666
"icon": { "type": "string" },

0 commit comments

Comments
 (0)