Skip to content

Commit

Permalink
fix: switch names around
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Patmore <[email protected]>
  • Loading branch information
Chris Patmore committed Jun 15, 2023
1 parent 8ec4d95 commit 0ee59db
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/ruleset/v2/ruleset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -239,7 +239,7 @@ export const v2SchemasRuleset = (parser: Parser) => {
},
},
},
'asyncapi2-message-examples': asyncApi2MessageExamplesParserRule(parser),
'asyncapi2-message-examples-custom-format': asyncApi2MessageExamplesParserRule(parser),
}
};
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { testRule, DiagnosticSeverity } from '../../tester';

testRule('asyncapi2-message-examples', [
testRule('asyncapi2-message-examples-custom-format', [
{
name: 'valid case',
document: {
Expand Down
2 changes: 1 addition & 1 deletion test/ruleset/rules/v2/asyncapi2-message-examples.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { testRule, DiagnosticSeverity } from '../../tester';

testRule('asyncapi2-message-examples-default', [
testRule('asyncapi2-message-examples', [
{
name: 'valid case',
document: {
Expand Down

0 comments on commit 0ee59db

Please sign in to comment.