Skip to content

Commit

Permalink
chore: update stale syntax (#1085)
Browse files Browse the repository at this point in the history
  • Loading branch information
tatomyr committed May 18, 2023
1 parent c02649d commit fe40578
Show file tree
Hide file tree
Showing 237 changed files with 102 additions and 102 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ exports[`E2E bundle lint format bundle lint: should be formatted by format: chec
</checkstyle>
❌ Validation failed with 1 error.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
bundling ./openapi.yaml...
📦 Created a bundle for ./openapi.yaml at /tmp/null.yaml <test>ms.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Error was generated by the spec rule.
❌ Validation failed with 1 error.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
bundling ./openapi.yaml...
📦 Created a bundle for ./openapi.yaml at /tmp/null.yaml <test>ms.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Error was generated by the spec rule.
❌ Validation failed with 1 error.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
bundling ./openapi.yaml...
📦 Created a bundle for ./openapi.yaml at /tmp/null.yaml <test>ms.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ exports[`E2E bundle lint format bundle lint: should be formatted by format: json
"problems": []
}
❌ Validation failed with 1 error.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
bundling ./openapi.yaml...
📦 Created a bundle for ./openapi.yaml at /tmp/null.yaml <test>ms.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Error was generated by the spec rule.
❌ Validation failed with 1 error.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
bundling ./openapi.yaml...
📦 Created a bundle for ./openapi.yaml at /tmp/null.yaml <test>ms.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ openapi.yaml:
20:11 error spec Expected type \`MediaType\` (object) but got \`null\`
❌ Validation failed with 1 error.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
bundling ./openapi.yaml...
📦 Created a bundle for ./openapi.yaml at /tmp/null.yaml <test>ms.
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions __tests__/bundle/max-problems-argument/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ foo.yaml:
30:11 error spec Property \`header\` is not expected here.
❌ Validation failed with 1 error.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
bundling ./foo.yaml...
📦 Created a bundle for ./foo.yaml at stdout <test>ms.
Expand All @@ -251,7 +251,7 @@ bar.yaml:
< ... 3 more problems hidden > increase with \`--max-problems N\`
❌ Validation failed with 3 errors and 1 warning.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
bundling ./bar.yaml...
📦 Created a bundle for ./bar.yaml at stdout <test>ms.
Expand Down
2 changes: 1 addition & 1 deletion __tests__/commands.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe('E2E', () => {
for (const file of contents) {
const testPath = join(folderPath, file);
if (statSync(testPath).isFile()) continue;
if (!existsSync(join(testPath, '.redocly.yaml'))) continue;
if (!existsSync(join(testPath, 'redocly.yaml'))) continue;

const args = getParams('../../../packages/cli/src/index.ts', 'lint');

Expand Down
2 changes: 1 addition & 1 deletion __tests__/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function getParams(
}

export function getEntrypoints(folderPath: string) {
const redoclyYamlFile = readFileSync(join(folderPath, '.redocly.yaml'), 'utf8');
const redoclyYamlFile = readFileSync(join(folderPath, 'redocly.yaml'), 'utf8');
const redoclyYaml = parseYaml(redoclyYamlFile) as { apis: Record<string, string> };
return Object.keys(redoclyYaml.apis);
}
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Warning was generated by the operation-operationId rule.
../__fixtures__/invalid-openapi.yaml: validated in <test>ms
❌ Validation failed with 3 errors and 2 warnings.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
[WARNING] Unused rules found in .redocly.yaml: context.
Check the spelling and verify the added plugin prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Error was generated by the minLength assertion rule.
/openapi.yaml: validated in <test>ms
❌ Validation failed with 2 errors.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
`;
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Error was generated by the camel-case-on-value assertion rule.
/openapi.yaml: validated in <test>ms
❌ Validation failed with 4 errors.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
`;
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Error was generated by the operation-id-kebab-case assertion rule.
/openapi.yaml: validated in <test>ms
❌ Validation failed with 3 errors.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
`;
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Error was generated by the operation-id-pascal-case assertion rule.
/openapi.yaml: validated in <test>ms
❌ Validation failed with 3 errors.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
`;
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Error was generated by the operation-id-snake-case assertion rule.
/openapi.yaml: validated in <test>ms
❌ Validation failed with 3 errors.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
`;
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Error was generated by the operation-summary-length assertion rule.
/openapi.yaml: validated in <test>ms
❌ Validation failed with 5 errors.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
`;
2 changes: 1 addition & 1 deletion __tests__/lint/assertions-defined-error/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Error was generated by the response-content-defined assertion rule.
/openapi.yaml: validated in <test>ms
❌ Validation failed with 2 errors.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
`;
2 changes: 1 addition & 1 deletion __tests__/lint/assertions-enum-error/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Error was generated by the operation-summary-value assertion rule.
/openapi.yaml: validated in <test>ms
❌ Validation failed with 1 error.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
`;
2 changes: 1 addition & 1 deletion __tests__/lint/assertions-enum-on-keys-error/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Error was generated by the media-type-application-json assertion rule.
/openapi.yaml: validated in <test>ms
❌ Validation failed with 1 error.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
`;
2 changes: 1 addition & 1 deletion __tests__/lint/assertions-error/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ Error was generated by the exampleMap assertion rule.
/openapi.yaml: validated in <test>ms
❌ Validation failed with 32 errors.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
`;
2 changes: 1 addition & 1 deletion __tests__/lint/assertions-list-types/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Error was generated by the TagList assertion rule.
/openapi.yaml: validated in <test>ms
❌ Validation failed with 3 errors.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
`;
2 changes: 1 addition & 1 deletion __tests__/lint/assertions-map-types/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Error was generated by the callbackMap assertion rule.
/openapi.yaml: validated in <test>ms
❌ Validation failed with 5 errors.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
`;
2 changes: 1 addition & 1 deletion __tests__/lint/assertions-match-parent-keys/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Error was generated by the match-parent-keys-with-defined assertion rule.
/openapi.yaml: validated in <test>ms
❌ Validation failed with 3 errors.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
`;
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Error was generated by the tags-max-length assertion rule.
/openapi.yaml: validated in <test>ms
❌ Validation failed with 1 error.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
`;
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Error was generated by the description-max-length assertion rule.
/openapi.yaml: validated in <test>ms
❌ Validation failed with 1 error.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
`;
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Error was generated by the tags-min-length assertion rule.
/openapi.yaml: validated in <test>ms
❌ Validation failed with 1 error.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
`;
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Error was generated by the description-min-length assertion rule.
/openapi.yaml: validated in <test>ms
❌ Validation failed with 1 error.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
`;
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Error was generated by the path-item-mutually-exclusive assertion rule.
/openapi.yaml: validated in <test>ms
❌ Validation failed with 1 error.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
`;
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Error was generated by the path-item-mutually-required assertion rule.
/openapi.yaml: validated in <test>ms
❌ Validation failed with 1 error.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
`;
2 changes: 1 addition & 1 deletion __tests__/lint/assertions-non-empty-error/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Error was generated by the summary-non-empty assertion rule.
/openapi.yaml: validated in <test>ms
❌ Validation failed with 1 error.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
`;
2 changes: 1 addition & 1 deletion __tests__/lint/assertions-pattern-error/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Error was generated by the summary-pattern assertion rule.
/openapi.yaml: validated in <test>ms
❌ Validation failed with 1 error.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
`;
2 changes: 1 addition & 1 deletion __tests__/lint/assertions-pattern-with-object/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Error was generated by the no-description-future-past assertion rule.
/openapi.yaml: validated in <test>ms
❌ Validation failed with 1 error.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
`;
2 changes: 1 addition & 1 deletion __tests__/lint/assertions-query-in-parameters/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Error was generated by the query-in-parameters assertion rule.
/openapi.yaml: validated in <test>ms
❌ Validation failed with 1 error.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
`;
2 changes: 1 addition & 1 deletion __tests__/lint/assertions-ref-forbidden-error/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Error was generated by the ref-forbidden-no-property assertion rule.
/openapi.yaml: validated in <test>ms
❌ Validation failed with 2 errors.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
`;
2 changes: 1 addition & 1 deletion __tests__/lint/assertions-ref-pattern-error/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Error was generated by the ref-pattern assertion rule.
/openapi.yaml: validated in <test>ms
❌ Validation failed with 5 errors.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
`;
2 changes: 1 addition & 1 deletion __tests__/lint/assertions-ref-required-error/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Error was generated by the ref-required assertion rule.
/openapi.yaml: validated in <test>ms
❌ Validation failed with 3 errors.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
`;
2 changes: 1 addition & 1 deletion __tests__/lint/assertions-require-any-error/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Error was generated by the operation-require-any-description-or-external asserti
/openapi.yaml: validated in <test>ms
❌ Validation failed with 1 error.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
`;
2 changes: 1 addition & 1 deletion __tests__/lint/assertions-show-suggestions/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Error was generated by the path-item-suggest assertion rule.
/openapi.yaml: validated in <test>ms
❌ Validation failed with 1 error.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
`;
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Error was generated by the no-type-integer-in-parameter assertion rule.
/openapi.yaml: validated in <test>ms
❌ Validation failed with 1 error.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
`;
2 changes: 1 addition & 1 deletion __tests__/lint/assertions-undefined-error/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Error was generated by the summary-undefined assertion rule.
/openapi.yaml: validated in <test>ms
❌ Validation failed with 1 error.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
`;
2 changes: 1 addition & 1 deletion __tests__/lint/assertions-vendor-extensions/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Error was generated by the vendor-extension assertion rule.
/openapi.yaml: validated in <test>ms
❌ Validation failed with 3 errors.
run \`openapi lint --generate-ignore-file\` to add all problems to the ignore file.
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
`;
File renamed without changes.
4 changes: 2 additions & 2 deletions __tests__/lint/deprecated-apiDefinitions/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`E2E lint deprecated-apiDefinitions 1`] = `
[1] .redocly.yaml:1:1 at #/apiDefinitions
[1] redocly.yaml:1:1 at #/apiDefinitions
Property \`apiDefinitions\` is not expected here.
Expand All @@ -14,7 +14,7 @@ Property \`apiDefinitions\` is not expected here.
Warning was generated by the configuration spec rule.
[2] .redocly.yaml:3:1 at #/lint
[2] redocly.yaml:3:1 at #/lint
Property \`lint\` is not expected here.
Expand Down
File renamed without changes.
Loading

1 comment on commit fe40578

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements 74.19% 3495/4711
🟡 Branches 65.04% 1981/3046
🟡 Functions 66.48% 587/883
🟡 Lines 74.24% 3253/4382

Test suite run success

585 tests passing in 85 suites.

Report generated by 🧪jest coverage report action from fe40578

Please sign in to comment.