fix(AWS Bedrock Chat Model Node): Do not show issues for arbitrary model names (#17079)

This commit is contained in:
Eugene
2025-07-15 10:02:27 +02:00
committed by GitHub
parent 42c61909c4
commit 5bb5a65edf
6 changed files with 180 additions and 11 deletions

View File

@@ -359,6 +359,13 @@ export function parseFromExpression(
return null;
}
export function shouldSkipParamValidation(value: string | number | boolean | null) {
return typeof value === 'string' && value.includes(CUSTOM_API_CALL_KEY);
export function shouldSkipParamValidation(
parameter: INodeProperties,
value: NodeParameterValueType,
) {
return (
(typeof value === 'string' && value.includes(CUSTOM_API_CALL_KEY)) ||
(['options', 'multiOptions'].includes(parameter.type) &&
Boolean(parameter.allowArbitraryValues))
);
}