Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/schema/schemas/mcp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<typeof AgentCoreGatewaySchema>;

Expand Down
Loading