File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,17 @@ const importModelUiSchema = {
22 uploadType : {
33 'ui:widget' : 'radio'
44 } ,
5+ // The conditional `file` property in importModelSchema sources its `format`
6+ // from @meshery /schemas' ImportBody.oneOf[0].properties.modelFile, which
7+ // declares `type: string` with no format. Without an explicit widget,
8+ // RJSF falls back to TextWidget — leaving the form without a real
9+ // <input type="file"> element, which breaks the File Import flow and the
10+ // Playwright test that drives it. Forcing 'ui:widget': 'file' here routes
11+ // the field through whichever FileWidget the consumer registers (e.g.,
12+ // Meshery's CustomFileWidget) and emits the expected file input.
13+ file : {
14+ 'ui:widget' : 'file'
15+ } ,
516 'ui:order' : [ 'uploadType' , 'file' , 'url' , 'csv' ]
617} ;
718
You can’t perform that action at this time.
0 commit comments