Skip to content

Commit

Permalink
Update src/ruleset/v3/functions/requiredOperationChannelUnambiguity.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Fran Méndez <[email protected]>
  • Loading branch information
smoya and fmvilas authored Nov 28, 2023
1 parent 1045a02 commit b9837de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit b9837de

Please sign in to comment.