diff --git a/src/schema/schemas/mcp.ts b/src/schema/schemas/mcp.ts index 90c634b2..aa5a28bd 100644 --- a/src/schema/schemas/mcp.ts +++ b/src/schema/schemas/mcp.ts @@ -615,11 +615,7 @@ export const AgentCoreGatewaySchema = z message: 'customJwtAuthorizer configuration is required when authorizerType is CUSTOM_JWT', path: ['authorizerConfiguration'], } - ) - .refine(data => (data.resourceName !== undefined) === (data.executionRoleArn !== undefined), { - message: 'resourceName and executionRoleArn must be set together (import) or both omitted (fresh gateway)', - path: ['resourceName'], - }); + ); export type AgentCoreGateway = z.infer;