Skip to content

Commit

Permalink
fix(ruleset): correct misleading 'info-license' message (#1031)
Browse files Browse the repository at this point in the history
  • Loading branch information
nulltoken authored Mar 24, 2020
1 parent 220d707 commit 5dc132d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rulesets/oas/__tests__/info-license.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('info-license', () => {
expect(results).toEqual([
{
code: 'info-license',
message: 'OpenAPI object info `license` must be present and non-empty string.',
message: 'OpenAPI object `info` should contain a `license` object.',
path: ['info'],
range: {
end: {
Expand Down
2 changes: 1 addition & 1 deletion src/rulesets/oas/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
]
},
"info-license": {
"description": "OpenAPI object info `license` must be present and non-empty string.",
"description": "OpenAPI object `info` should contain a `license` object.",
"recommended": false,
"type": "style",
"given": "$",
Expand Down

0 comments on commit 5dc132d

Please sign in to comment.