diff --git a/src/rulesets/oas3/__tests__/__snapshots__/api-servers.ts.snap b/src/rulesets/oas3/__tests__/__snapshots__/api-servers.ts.snap index 259904e6f..b6857a253 100644 --- a/src/rulesets/oas3/__tests__/__snapshots__/api-servers.ts.snap +++ b/src/rulesets/oas3/__tests__/__snapshots__/api-servers.ts.snap @@ -10,7 +10,7 @@ Array [ ], "severity": 40, "severityLabel": "warn", - "summary": "OpenAPI \`servers\` must be present and non-empty string.", + "summary": "OpenAPI \`servers\` must be present and non-empty array.", }, ] `; @@ -25,7 +25,7 @@ Array [ ], "severity": 40, "severityLabel": "warn", - "summary": "OpenAPI \`servers\` must be present and non-empty string.", + "summary": "OpenAPI \`servers\` must be present and non-empty array.", }, ] `; diff --git a/src/rulesets/oas3/index.ts b/src/rulesets/oas3/index.ts index c97744e42..1bb2e9636 100644 --- a/src/rulesets/oas3/index.ts +++ b/src/rulesets/oas3/index.ts @@ -9,7 +9,7 @@ export { commonOasFunctions as oas3Functions } from '../oas'; export const oas3Rules = () => { return merge(commonOasRules(), { - // specifcication validation + // specification validation 'oas3-schema': { summary: 'Validate structure of OpenAPIv3 specification.', type: RuleType.VALIDATION, @@ -25,7 +25,7 @@ export const oas3Rules = () => { // generic rules 'api-servers': { - summary: 'OpenAPI `servers` must be present and non-empty string.', + summary: 'OpenAPI `servers` must be present and non-empty array.', type: RuleType.STYLE, given: '$', then: {