We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a884df7 commit d9101feCopy full SHA for d9101fe
src/schema/schemas/mcp.ts
@@ -415,6 +415,20 @@ export const AgentCoreGatewayTargetSchema = z
415
path: ['endpoint'],
416
});
417
}
418
+ if (data.toolDefinitions && data.toolDefinitions.length > 0) {
419
+ ctx.addIssue({
420
+ code: z.ZodIssueCode.custom,
421
+ message: `toolDefinitions is not applicable for ${data.targetType} target type`,
422
+ path: ['toolDefinitions'],
423
+ });
424
+ }
425
+ if (data.apiGateway) {
426
427
428
+ message: `apiGateway config is not applicable for ${data.targetType} target type`,
429
+ path: ['apiGateway'],
430
431
432
433
if (data.targetType === 'mcpServer' && !data.compute && !data.endpoint) {
434
ctx.addIssue({
0 commit comments