You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Handle both old format (schema as string) and new format (schema as object)
93
-
letactualSchema: SchemaDefinition;
94
-
95
-
if(typeofargs.schema==='string'){
96
-
// Old format: reconstruct the schema from separate fields
97
-
if(!args.properties){
98
-
return{
99
-
success: false,
100
-
data: null,
101
-
error: 'Schema is required. When using string format, properties field is required. Please provide a JSON Schema definition. Example: {"type": "object", "properties": {"title": {"type": "string"}}}'
102
-
};
103
-
}
104
-
105
-
actualSchema={
106
-
type: args.schema,
107
-
properties: args.properties,
108
-
...(args.required&&{required: args.required})
109
-
};
110
-
111
-
logger.debug('Converted old format schema to new format:',actualSchema);
0 commit comments