Skip to content

Commit 961d059

Browse files
committed
pattern json data rstrict to single,set show_opt_in option
1 parent 5f130fc commit 961d059

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

mcxcloud/frontend/index.html

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ <h3>Backend</h3>
867867
"minimum": 0
868868
},
869869
"Pattern": {
870-
"title": "Source Pattern Data",
870+
"title": "Source Pattern",
871871
"type": "object",
872872
"required": [
873873
"_ArrayType_",
@@ -879,14 +879,8 @@ <h3>Backend</h3>
879879
"properties": {
880880
"_ArrayType_": {
881881
"type": "string",
882-
"default": "uint8",
882+
"default": "single",
883883
"enum": [
884-
"uint8",
885-
"uint16",
886-
"uint32",
887-
"int8",
888-
"int16",
889-
"int32",
890884
"single"
891885
]
892886
},
@@ -1932,6 +1926,7 @@ <h3>Backend</h3>
19321926
schema: defaultSchema,
19331927
show_errors: 'interaction',
19341928
theme: 'spectre',
1929+
show_opt_in: true,
19351930
no_additional_properties: true
19361931
}
19371932

schema/mcxinput.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -302,14 +302,8 @@
302302
"properties": {
303303
"_ArrayType_": {
304304
"type": "string",
305-
"default": "uint8",
305+
"default": "single",
306306
"enum": [
307-
"uint8",
308-
"uint16",
309-
"uint32",
310-
"int8",
311-
"int16",
312-
"int32",
313307
"single"
314308
]
315309
},

0 commit comments

Comments
 (0)