File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -47,9 +47,7 @@ function getInputFormatFields(block: SerializedBlock): OutputSchema {
4747 const schema : OutputSchema = { }
4848 for ( const field of inputFormat ) {
4949 if ( ! field . name ) continue
50- schema [ field . name ] = {
51- type : ( field . type || 'any' ) as 'string' | 'number' | 'boolean' | 'object' | 'array' | 'any' ,
52- }
50+ schema [ field . name ] = { type : field . type || 'any' }
5351 }
5452
5553 return schema
@@ -85,9 +83,7 @@ function getResponseFormatSchema(block: SerializedBlock): OutputSchema | undefin
8583
8684 const schema : OutputSchema = { }
8785 for ( const field of fields ) {
88- schema [ field . name ] = {
89- type : ( field . type || 'any' ) as 'string' | 'number' | 'boolean' | 'object' | 'array' | 'any' ,
90- }
86+ schema [ field . name ] = { type : field . type || 'any' }
9187 }
9288 return schema
9389}
You can’t perform that action at this time.
0 commit comments