Skip to content

Commit 76b7de0

Browse files
committed
review
1 parent 671b945 commit 76b7de0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

eslint/src/rules/refCommon.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ const allSpecs = [
1919
export const refCommon: Rule.RuleModule = {
2020
meta: {
2121
docs: {
22-
description: 'the $ref must target the current spec, or the common spec',
22+
description:
23+
'the $ref must target the current spec, or the common spec. If you intended to use a model from an other spec, move it to the common folder',
2324
},
2425
messages: {
2526
refCommon: '$ref to another spec',

eslint/tests/outOfLineRule.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ root:
4747
inside:
4848
type: string
4949
enum: [bla, blabla]
50-
`,
50+
`,
5151
errors: [{ messageId: 'enumNotOutOfLine' }],
5252
},
5353
{
@@ -60,7 +60,7 @@ root:
6060
6161
useIt:
6262
$ref: '#/root/inside/deeper'
63-
`,
63+
`,
6464
errors: [{ messageId: 'enumNotOutOfLine' }],
6565
},
6666
],

0 commit comments

Comments
 (0)