From b9837de0218cb4262ed089f64cd33ff131dff355 Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Tue, 28 Nov 2023 10:10:31 +0100 Subject: [PATCH] Update src/ruleset/v3/functions/requiredOperationChannelUnambiguity.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Fran Méndez --- src/ruleset/v3/functions/requiredOperationChannelUnambiguity.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ruleset/v3/functions/requiredOperationChannelUnambiguity.ts b/src/ruleset/v3/functions/requiredOperationChannelUnambiguity.ts index 871136965..7a4359707 100644 --- a/src/ruleset/v3/functions/requiredOperationChannelUnambiguity.ts +++ b/src/ruleset/v3/functions/requiredOperationChannelUnambiguity.ts @@ -30,7 +30,7 @@ export const requiredOperationChannelUnambiguity = createRulesetFunction<{ chann const results: IFunctionResult[] = []; const channelPointer = targetVal.channel?.$ref as string; // required - if (channelPointer.includes('#/components/channels')) { + if (!channelPointer.includes('#/channels/')) { results.push({ message: 'The channel field of a required operation should point to a required channel.', path: [...ctx.path, 'channel'],