File tree Expand file tree Collapse file tree 2 files changed +100
-80
lines changed Expand file tree Collapse file tree 2 files changed +100
-80
lines changed Original file line number Diff line number Diff line change @@ -1161,104 +1161,100 @@
1161
1161
}
1162
1162
},
1163
1163
"defaultValueValidation" : {
1164
- "if" : {
1165
- "required" : [" type" ],
1166
- "properties" : {
1167
- "type" : {
1168
- "minLength" : 1
1164
+ "oneOf" : [
1165
+ {
1166
+ "properties" : {
1167
+ "type" : {
1168
+ "type" : " null"
1169
+ }
1169
1170
}
1170
- }
1171
- },
1172
- "then" : {
1173
- "allOf" : [
1174
- {
1175
- "if" : {
1176
- "properties" : {
1177
- "type" : {
1178
- "const" : " string"
1179
- }
1180
- }
1181
- },
1182
- "then" : {
1183
- "properties" : {
1184
- "defaultValue" : {
1185
- "type" : " string"
1186
- }
1171
+ },
1172
+ {
1173
+ "not" : {
1174
+ "properties" : {
1175
+ "type" : {
1176
+ "enum" : [
1177
+ " string" ,
1178
+ " integer" ,
1179
+ " number" ,
1180
+ " boolean"
1181
+ ]
1187
1182
}
1188
1183
}
1189
- },
1190
- {
1191
- "if" : {
1192
- "properties" : {
1193
- "type" : {
1194
- "const" : " integer"
1195
- }
1196
- }
1184
+ }
1185
+ },
1186
+ {
1187
+ "required" : [
1188
+ " type"
1189
+ ],
1190
+ "properties" : {
1191
+ "type" : {
1192
+ "const" : " string"
1197
1193
},
1198
- "then" : {
1199
- "properties" : {
1200
- "defaultValue" : {
1201
- "type" : " integer"
1202
- }
1203
- }
1194
+ "defaultValue" : {
1195
+ "type" : [
1196
+ " string" ,
1197
+ " null"
1198
+ ]
1204
1199
}
1205
- },
1206
- {
1207
- "if" : {
1208
- "properties" : {
1209
- "type" : {
1210
- "const" : " boolean"
1211
- }
1212
- }
1200
+ }
1201
+ },
1202
+ {
1203
+ "required" : [
1204
+ " type"
1205
+ ],
1206
+ "properties" : {
1207
+ "type" : {
1208
+ "const" : " integer"
1213
1209
},
1214
- "then" : {
1215
- "properties" : {
1216
- "defaultValue" : {
1217
- "type" : " boolean"
1218
- }
1219
- }
1210
+ "defaultValue" : {
1211
+ "type" : [
1212
+ " integer" ,
1213
+ " null"
1214
+ ]
1220
1215
}
1221
- },
1222
- {
1223
- "if" : {
1224
- "properties" : {
1225
- "type" : {
1226
- "const" : " array"
1227
- }
1228
- }
1216
+ }
1217
+ },
1218
+ {
1219
+ "required" : [
1220
+ " type"
1221
+ ],
1222
+ "properties" : {
1223
+ "type" : {
1224
+ "const" : " number"
1229
1225
},
1230
- "then" : {
1231
- "properties" : {
1232
- "defaultValue" : {
1233
- "type" : " array"
1234
- }
1235
- }
1226
+ "defaultValue" : {
1227
+ "type" : [
1228
+ " number" ,
1229
+ " null"
1230
+ ]
1236
1231
}
1237
- },
1238
- {
1239
- "if" : {
1240
- "properties" : {
1241
- "type" : {
1242
- "const" : " number"
1243
- }
1244
- }
1232
+ }
1233
+ },
1234
+ {
1235
+ "required" : [
1236
+ " type"
1237
+ ],
1238
+ "properties" : {
1239
+ "type" : {
1240
+ "const" : " boolean"
1245
1241
},
1246
- "then" : {
1247
- "properties" : {
1248
- "defaultValue" : {
1249
- "type" : " number"
1250
- }
1251
- }
1242
+ "defaultValue" : {
1243
+ "type" : [
1244
+ " boolean" ,
1245
+ " null"
1246
+ ]
1252
1247
}
1253
1248
}
1254
- ]
1255
- }
1249
+ }
1250
+ ]
1256
1251
},
1257
1252
"defaultValueType" : {
1258
1253
"type" : [
1259
1254
" string" ,
1260
1255
" number" ,
1261
1256
" boolean" ,
1257
+ " integer" ,
1262
1258
" null" ,
1263
1259
" array"
1264
1260
]
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ My.Vendor:Content.Editors:
48
48
49
49
textField :
50
50
type : string
51
+ defaultValue : ' foo'
51
52
ui :
52
53
inspector :
53
54
editor : ' Neos.Neos/Inspector/Editors/TextFieldEditor'
@@ -75,6 +76,8 @@ My.Vendor:Content.Editors:
75
76
icon : ' newspaper'
76
77
77
78
boolean :
79
+ type : boolean
80
+ defaultValue : true
78
81
ui :
79
82
inspector :
80
83
editor : ' Neos.Neos/Inspector/Editors/BooleanEditor'
@@ -97,6 +100,27 @@ My.Vendor:Content.Editors:
97
100
editorOptions :
98
101
highlightingMode : htmlmixed
99
102
103
+ integer :
104
+ type : integer
105
+ defaultValue : 2
106
+ ui :
107
+ inspector :
108
+ editor : ' Neos.Neos/Inspector/Editors/RangeEditor'
109
+ editorOptions :
110
+ min : 0
111
+ max : 10
112
+
113
+ number :
114
+ type : number
115
+ defaultValue : 1.2
116
+ ui :
117
+ inspector :
118
+ editor : ' Neos.Neos/Inspector/Editors/RangeEditor'
119
+ editorOptions :
120
+ min : 0
121
+ max : 10
122
+ step : 0.1
123
+
100
124
asset :
101
125
type : Neos\Media\Domain\Model\Asset
102
126
ui :
You can’t perform that action at this time.
0 commit comments