File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ const toolInputSchema = toolInputBaseSchema.and(
6161 z . object ( { type : IOType } ) . or (
6262 z . object ( {
6363 type : z . literal ( "file" ) ,
64- mimeTypes : z . string ( ) . nonempty ( ) ,
64+ mimeTypes : z . string ( ) . min ( 1 ) ,
6565 } )
6666 )
6767) ;
Original file line number Diff line number Diff line change 367367 </p >
368368 </div >
369369
370+ <p class =" text-xs text-red-500" >
371+ {getError (` inputs ` , form )}
372+ </p >
373+
370374 {#each editableTool .inputs as input , inputIdx }
371375 {@const parameter = endpoint .parameters .find (
372376 (parameter ) => parameter .parameter_name === input .name
435439 bind:value ={input .description }
436440 disabled ={readonly }
437441 />
438- <p class =" text-xs text-red-500" >
439- {getError (` ${input .name }-description ` , form )}
440- </p >
441442 </label >
442443 {/if }
443444 {#if input .paramType === " optional" || input .paramType === " fixed" }
467468 bind:value ={input .value }
468469 />
469470 {/if }
470- <p class =" text-xs text-red-500" >
471- {getError (` ${input .name }-${isOptional ? " default" : " value" } ` , form )}
472- </p >
473471 </div >
474472 {/if }
475473 {#if input .type === " file" }
You can’t perform that action at this time.
0 commit comments