Skip to content

Commit b73a2b4

Browse files
HCK-9147: add adapting for unvailable types (#129)
1 parent f7e105a commit b73a2b4

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

properties_pane/model_level/modelLevelConfig.json

+19-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,25 @@ making sure that you maintain a proper JSON format.
7171
"propertyTooltip": "DB version",
7272
"propertyType": "select",
7373
"options": ["v10.x", "v11.x", "v12.x", "v13.x", "v14.x", "v15.x", "v16.x"],
74-
"disabledOption": false
74+
"disabledOption": false,
75+
"adapters": [
76+
{
77+
"dependency": {
78+
"type": "or",
79+
"values": [
80+
{
81+
"key": "dbVersion",
82+
"value": "v10.x"
83+
},
84+
{
85+
"key": "dbVersion",
86+
"value": "v11.x"
87+
}
88+
]
89+
},
90+
"adapter": "adaptUnavailableTypes"
91+
}
92+
]
7593
},
7694
{
7795
"propertyName": "Database name",

types/vector.json

+5
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@
3030
"childValueMode": "real"
3131
}
3232
},
33+
"compatibleWith": {
34+
"type": "char",
35+
"parentType": "string",
36+
"mode": "bit"
37+
},
3338
"dependency": {
3439
"type": "not",
3540
"values": [

0 commit comments

Comments
 (0)