Skip to content

Commit

Permalink
fix: correctly set unique id rule as an error (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
XVincentX authored Mar 30, 2019
1 parent 8c47f3d commit 551ee3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Array [
"line": 4,
},
},
"severity": 1,
"severity": 0,
"source": undefined,
"summary": "Every operation must have a unique \`operationId\`.",
},
Expand All @@ -44,7 +44,7 @@ Array [
"line": 9,
},
},
"severity": 1,
"severity": 0,
"source": undefined,
"summary": "Every operation must have a unique \`operationId\`.",
},
Expand Down Expand Up @@ -72,7 +72,7 @@ Array [
"line": 4,
},
},
"severity": 1,
"severity": 0,
"source": undefined,
"summary": "Every operation must have a unique \`operationId\`.",
},
Expand All @@ -95,7 +95,7 @@ Array [
"line": 7,
},
},
"severity": 1,
"severity": 0,
"source": undefined,
"summary": "Every operation must have a unique \`operationId\`.",
},
Expand Down
1 change: 1 addition & 0 deletions src/rulesets/oas/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export const commonOasRules = (): RuleCollection => ({
'operation-operationId-unique': {
summary: 'Every operation must have a unique `operationId`.',
type: RuleType.VALIDATION,
severity: DiagnosticSeverity.Error,
given: '$',
then: {
function: 'oasOpIdUnique',
Expand Down

0 comments on commit 551ee3c

Please sign in to comment.