fix(marketplace): close client contract gaps
This commit is contained in:
@@ -782,8 +782,8 @@ function parseV2Tool(
|
||||
if (permissions.some((permission) => !hostedPermissionMatchesPlugin(permission, pluginId))) {
|
||||
fail(filePath, `tools[${index}].permissions`, 'permission is outside the plugin hosted namespace');
|
||||
}
|
||||
if (tool.executionMode !== 'synchronous' && tool.executionMode !== 'accepted') {
|
||||
fail(filePath, `tools[${index}].executionMode`, 'must be synchronous or accepted');
|
||||
if (tool.executionMode !== 'synchronous' && tool.executionMode !== 'job') {
|
||||
fail(filePath, `tools[${index}].executionMode`, 'must be synchronous or job');
|
||||
}
|
||||
validateV2SchemaNode(tool.inputSchema, filePath, `tools[${index}].inputSchema`);
|
||||
validateV2SchemaNode(tool.outputSchema, filePath, `tools[${index}].outputSchema`);
|
||||
|
||||
Reference in New Issue
Block a user