From 0ee59db5429e9e83d207d325ccafad4ac35d1694 Mon Sep 17 00:00:00 2001 From: Chris Patmore Date: Wed, 7 Jun 2023 09:41:39 +0100 Subject: [PATCH] fix: switch names around Signed-off-by: Chris Patmore --- src/ruleset/v2/ruleset.ts | 4 ++-- .../rules/v2/asyncapi2-message-examples-spectral-v2.spec.ts | 2 +- test/ruleset/rules/v2/asyncapi2-message-examples.spec.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ruleset/v2/ruleset.ts b/src/ruleset/v2/ruleset.ts index 3fc1fe665..5b53e2ea7 100644 --- a/src/ruleset/v2/ruleset.ts +++ b/src/ruleset/v2/ruleset.ts @@ -116,7 +116,7 @@ export const v2CoreRuleset = { /** * Message Object rules */ - 'asyncapi2-message-examples-default': { + 'asyncapi2-message-examples': { description: 'Examples of message object should validate againt the "payload" and "headers" schemas.', message: '{{error}}', severity: 'error', @@ -239,7 +239,7 @@ export const v2SchemasRuleset = (parser: Parser) => { }, }, }, - 'asyncapi2-message-examples': asyncApi2MessageExamplesParserRule(parser), + 'asyncapi2-message-examples-custom-format': asyncApi2MessageExamplesParserRule(parser), } }; }; diff --git a/test/ruleset/rules/v2/asyncapi2-message-examples-spectral-v2.spec.ts b/test/ruleset/rules/v2/asyncapi2-message-examples-spectral-v2.spec.ts index aa6dbadae..0be029ae0 100644 --- a/test/ruleset/rules/v2/asyncapi2-message-examples-spectral-v2.spec.ts +++ b/test/ruleset/rules/v2/asyncapi2-message-examples-spectral-v2.spec.ts @@ -1,6 +1,6 @@ import { testRule, DiagnosticSeverity } from '../../tester'; -testRule('asyncapi2-message-examples', [ +testRule('asyncapi2-message-examples-custom-format', [ { name: 'valid case', document: { diff --git a/test/ruleset/rules/v2/asyncapi2-message-examples.spec.ts b/test/ruleset/rules/v2/asyncapi2-message-examples.spec.ts index 570cd2028..c4cb68767 100644 --- a/test/ruleset/rules/v2/asyncapi2-message-examples.spec.ts +++ b/test/ruleset/rules/v2/asyncapi2-message-examples.spec.ts @@ -1,6 +1,6 @@ import { testRule, DiagnosticSeverity } from '../../tester'; -testRule('asyncapi2-message-examples-default', [ +testRule('asyncapi2-message-examples', [ { name: 'valid case', document: {