Pārlūkot izejas kodu

interface: relax enum for tool and allow multiple property types (#217)

Parth Sareen 3 mēneši atpakaļ
vecāks
revīzija
28fb3e6d03
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      src/interfaces.ts

+ 2 - 2
src/interfaces.ts

@@ -86,9 +86,9 @@ export interface Tool {
       required: string[];
       properties: {
         [key: string]: {
-          type: string;
+          type: string | string[];
           description: string;
-          enum?: string[];
+          enum?: any[];
         };
       };
     };