mirror of
https://github.com/LukeHagar/redocly-cli.git
synced 2025-12-07 20:57:49 +00:00
chore: update stale syntax (#1085)
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
@@ -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.
|
||||
|
||||
@@ -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');
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
`;
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
`;
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
`;
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
`;
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
`;
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
`;
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
`;
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
`;
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
`;
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
`;
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
`;
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
`;
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
`;
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
`;
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
`;
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
`;
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
`;
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
`;
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
`;
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
`;
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
`;
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
`;
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
`;
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
`;
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
`;
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
`;
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
`;
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
`;
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
`;
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
`;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user