diff --git a/__tests__/bundle/async3/snapshot.js b/__tests__/bundle/async3/snapshot.js index edf3ca9976..385bcc16b5 100644 --- a/__tests__/bundle/async3/snapshot.js +++ b/__tests__/bundle/async3/snapshot.js @@ -54,7 +54,7 @@ operations: format: email description: Email of the user -bundling ./simple.yml... -๐Ÿ“ฆ Created a bundle for ./simple.yml at stdout ms. +bundling simple.yml... +๐Ÿ“ฆ Created a bundle for simple.yml at stdout ms. `; diff --git a/__tests__/bundle/bundle-anchor/snapshot.js b/__tests__/bundle/bundle-anchor/snapshot.js index 756fb6ef14..bec4a7fcd0 100644 --- a/__tests__/bundle/bundle-anchor/snapshot.js +++ b/__tests__/bundle/bundle-anchor/snapshot.js @@ -28,7 +28,7 @@ paths: foo: TEST components: {} -bundling ./test.yaml... -๐Ÿ“ฆ Created a bundle for ./test.yaml at stdout ms. +bundling test.yaml... +๐Ÿ“ฆ Created a bundle for test.yaml at stdout ms. `; diff --git a/__tests__/bundle/bundle-description-dereferenced/snapshot.js b/__tests__/bundle/bundle-description-dereferenced/snapshot.js index df842b8cd2..bd09537685 100644 --- a/__tests__/bundle/bundle-description-dereferenced/snapshot.js +++ b/__tests__/bundle/bundle-description-dereferenced/snapshot.js @@ -36,8 +36,8 @@ components: $ref: '#/components/schemas/Name' description: Other name (specific). -bundling ./test.yaml... -๐Ÿ“ฆ Created a bundle for ./test.yaml at stdout ms. +bundling test.yaml... +๐Ÿ“ฆ Created a bundle for test.yaml at stdout ms. `; diff --git a/__tests__/bundle/bundle-description-long/snapshot.js b/__tests__/bundle/bundle-description-long/snapshot.js index 6c60495793..1449e45c7e 100644 --- a/__tests__/bundle/bundle-description-long/snapshot.js +++ b/__tests__/bundle/bundle-description-long/snapshot.js @@ -18,8 +18,8 @@ info: security: [] components: {} -bundling ./test.yaml... -๐Ÿ“ฆ Created a bundle for ./test.yaml at stdout ms. +bundling test.yaml... +๐Ÿ“ฆ Created a bundle for test.yaml at stdout ms. `; diff --git a/__tests__/bundle/bundle-external-value/snapshot.js b/__tests__/bundle/bundle-external-value/snapshot.js index d34f50ee11..d58ce4e696 100644 --- a/__tests__/bundle/bundle-external-value/snapshot.js +++ b/__tests__/bundle/bundle-external-value/snapshot.js @@ -36,9 +36,9 @@ paths: externalValue: ./external-value.json components: {} -bundling ./test-success.yaml... -๐Ÿ“ฆ Created a bundle for ./test-success.yaml at stdout ms. -bundling ./test-wrong-examples.yaml... +bundling test-success.yaml... +๐Ÿ“ฆ Created a bundle for test-success.yaml at stdout ms. +bundling test-wrong-examples.yaml... [1] test-wrong-examples.yaml:27:17 at #/paths/~1/post/requestBody/content/application~1xml/examples/test-wrong-ref Can't resolve $ref: ENOENT: no such file or directory './__tests__/bundle/bundle-external-value/external-value-bad-path.json' @@ -54,6 +54,6 @@ Can't resolve $ref: ENOENT: no such file or directory './__tests__/bundle/bundle Error was generated by the bundler rule. -โŒ Errors encountered while bundling ./test-wrong-examples.yaml: bundle not created (use --force to ignore errors). +โŒ Errors encountered while bundling test-wrong-examples.yaml: bundle not created (use --force to ignore errors). `; diff --git a/__tests__/bundle/bundle-remove-unused-components-from-config/oas2-without-option/without-remove-unused-components-snapshot.js b/__tests__/bundle/bundle-remove-unused-components-from-config/oas2-without-option/without-remove-unused-components-snapshot.js index b61fd9074f..06c76ea77f 100644 --- a/__tests__/bundle/bundle-remove-unused-components-from-config/oas2-without-option/without-remove-unused-components-snapshot.js +++ b/__tests__/bundle/bundle-remove-unused-components-from-config/oas2-without-option/without-remove-unused-components-snapshot.js @@ -38,7 +38,7 @@ securityDefinitions: name: access_token type: apiKey -bundling ./openapi.yaml... -๐Ÿ“ฆ Created a bundle for ./openapi.yaml at stdout ms. +bundling openapi.yaml... +๐Ÿ“ฆ Created a bundle for openapi.yaml at stdout ms. `; diff --git a/__tests__/bundle/bundle-remove-unused-components-from-config/oas2/remove-unused-components-snapshot.js b/__tests__/bundle/bundle-remove-unused-components-from-config/oas2/remove-unused-components-snapshot.js index 0466cad3b9..9b34dd5f18 100644 --- a/__tests__/bundle/bundle-remove-unused-components-from-config/oas2/remove-unused-components-snapshot.js +++ b/__tests__/bundle/bundle-remove-unused-components-from-config/oas2/remove-unused-components-snapshot.js @@ -14,8 +14,8 @@ definitions: ref: type: string -bundling ./openapi.yaml... -๐Ÿ“ฆ Created a bundle for ./openapi.yaml at stdout ms. +bundling openapi.yaml... +๐Ÿ“ฆ Created a bundle for openapi.yaml at stdout ms. ๐Ÿงน Removed 4 unused components. `; diff --git a/__tests__/bundle/bundle-remove-unused-components-from-config/oas3-without-option/without-remove-unused-components-snapshot.js b/__tests__/bundle/bundle-remove-unused-components-from-config/oas3-without-option/without-remove-unused-components-snapshot.js index e918bda117..80ea5358d7 100644 --- a/__tests__/bundle/bundle-remove-unused-components-from-config/oas3-without-option/without-remove-unused-components-snapshot.js +++ b/__tests__/bundle/bundle-remove-unused-components-from-config/oas3-without-option/without-remove-unused-components-snapshot.js @@ -53,7 +53,7 @@ components: schema: type: integer -bundling ./openapi.yaml... -๐Ÿ“ฆ Created a bundle for ./openapi.yaml at stdout ms. +bundling openapi.yaml... +๐Ÿ“ฆ Created a bundle for openapi.yaml at stdout ms. `; diff --git a/__tests__/bundle/bundle-remove-unused-components-from-config/oas3/remove-unused-components-snapshot.js b/__tests__/bundle/bundle-remove-unused-components-from-config/oas3/remove-unused-components-snapshot.js index 14815199fc..2b581a7343 100644 --- a/__tests__/bundle/bundle-remove-unused-components-from-config/oas3/remove-unused-components-snapshot.js +++ b/__tests__/bundle/bundle-remove-unused-components-from-config/oas3/remove-unused-components-snapshot.js @@ -17,8 +17,8 @@ components: ref: type: string -bundling ./openapi.yaml... -๐Ÿ“ฆ Created a bundle for ./openapi.yaml at stdout ms. +bundling openapi.yaml... +๐Ÿ“ฆ Created a bundle for openapi.yaml at stdout ms. ๐Ÿงน Removed 6 unused components. `; diff --git a/__tests__/bundle/bundle-remove-unused-components/oas2/remove-unused-components-snapshot.js b/__tests__/bundle/bundle-remove-unused-components/oas2/remove-unused-components-snapshot.js index 2ac984e858..d393e21fb8 100644 --- a/__tests__/bundle/bundle-remove-unused-components/oas2/remove-unused-components-snapshot.js +++ b/__tests__/bundle/bundle-remove-unused-components/oas2/remove-unused-components-snapshot.js @@ -14,8 +14,8 @@ definitions: ref: type: string -bundling ./openapi.yaml... -๐Ÿ“ฆ Created a bundle for ./openapi.yaml at stdout ms. +bundling openapi.yaml... +๐Ÿ“ฆ Created a bundle for openapi.yaml at stdout ms. ๐Ÿงน Removed 4 unused components. `; diff --git a/__tests__/bundle/bundle-remove-unused-components/oas3/remove-unused-components-snapshot.js b/__tests__/bundle/bundle-remove-unused-components/oas3/remove-unused-components-snapshot.js index 746d09d755..1bc96f07d0 100644 --- a/__tests__/bundle/bundle-remove-unused-components/oas3/remove-unused-components-snapshot.js +++ b/__tests__/bundle/bundle-remove-unused-components/oas3/remove-unused-components-snapshot.js @@ -17,8 +17,8 @@ components: ref: type: string -bundling ./openapi.yaml... -๐Ÿ“ฆ Created a bundle for ./openapi.yaml at stdout ms. +bundling openapi.yaml... +๐Ÿ“ฆ Created a bundle for openapi.yaml at stdout ms. ๐Ÿงน Removed 6 unused components. `; diff --git a/__tests__/bundle/discriminator-mapping/snapshot.js b/__tests__/bundle/discriminator-mapping/snapshot.js index 27519d914f..d726128276 100644 --- a/__tests__/bundle/discriminator-mapping/snapshot.js +++ b/__tests__/bundle/discriminator-mapping/snapshot.js @@ -37,8 +37,8 @@ components: bar: type: boolean -bundling ./main.yaml... -๐Ÿ“ฆ Created a bundle for ./main.yaml at stdout ms. +bundling main.yaml... +๐Ÿ“ฆ Created a bundle for main.yaml at stdout ms. `; diff --git a/__tests__/bundle/info-description-override-error/snapshot.js b/__tests__/bundle/info-description-override-error/snapshot.js index cf94eacfda..f4202c8d6f 100644 --- a/__tests__/bundle/info-description-override-error/snapshot.js +++ b/__tests__/bundle/info-description-override-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E bundle info-description-override-error 1`] = ` -bundling ./main.yaml... +bundling main.yaml... [1] main.yaml:8:16 at #/info/description Failed to read markdown override file for "info.description". @@ -18,6 +18,6 @@ ENOENT: no such file or directory, open './test.md' Error was generated by the info-description-override rule. -โŒ Errors encountered while bundling ./main.yaml: bundle not created (use --force to ignore errors). +โŒ Errors encountered while bundling main.yaml: bundle not created (use --force to ignore errors). `; diff --git a/__tests__/bundle/info-description-override/snapshot.js b/__tests__/bundle/info-description-override/snapshot.js index 2ca0b227d8..4d04fb6089 100644 --- a/__tests__/bundle/info-description-override/snapshot.js +++ b/__tests__/bundle/info-description-override/snapshot.js @@ -31,7 +31,7 @@ paths: description: example description components: {} -bundling ./main.yaml... -๐Ÿ“ฆ Created a bundle for ./main.yaml at stdout ms. +bundling main.yaml... +๐Ÿ“ฆ Created a bundle for main.yaml at stdout ms. `; diff --git a/__tests__/bundle/info-override/snapshot.js b/__tests__/bundle/info-override/snapshot.js index 5e145a47eb..b52d9584f1 100644 --- a/__tests__/bundle/info-override/snapshot.js +++ b/__tests__/bundle/info-override/snapshot.js @@ -27,7 +27,7 @@ paths: description: example description components: {} -bundling ./main.yaml... -๐Ÿ“ฆ Created a bundle for ./main.yaml at stdout ms. +bundling main.yaml... +๐Ÿ“ฆ Created a bundle for main.yaml at stdout ms. `; diff --git a/__tests__/bundle/no-duplicated-components/snapshot.js b/__tests__/bundle/no-duplicated-components/snapshot.js index a044e827e4..a92417d02f 100644 --- a/__tests__/bundle/no-duplicated-components/snapshot.js +++ b/__tests__/bundle/no-duplicated-components/snapshot.js @@ -15,7 +15,7 @@ components: Test: type: object -bundling ./openapi.yaml... -๐Ÿ“ฆ Created a bundle for ./openapi.yaml at stdout ms. +bundling openapi.yaml... +๐Ÿ“ฆ Created a bundle for openapi.yaml at stdout ms. `; diff --git a/__tests__/bundle/no-self-referenced-components/snapshot.js b/__tests__/bundle/no-self-referenced-components/snapshot.js index a036fa20fc..1c935b9b1a 100644 --- a/__tests__/bundle/no-self-referenced-components/snapshot.js +++ b/__tests__/bundle/no-self-referenced-components/snapshot.js @@ -24,7 +24,7 @@ components: schema: type: string -bundling ./openapi.yaml... -๐Ÿ“ฆ Created a bundle for ./openapi.yaml at stdout ms. +bundling openapi.yaml... +๐Ÿ“ฆ Created a bundle for openapi.yaml at stdout ms. `; diff --git a/__tests__/bundle/no-self-referenced-or-duplicated-components/snapshot.js b/__tests__/bundle/no-self-referenced-or-duplicated-components/snapshot.js index 62080a489b..406381519d 100644 --- a/__tests__/bundle/no-self-referenced-or-duplicated-components/snapshot.js +++ b/__tests__/bundle/no-self-referenced-or-duplicated-components/snapshot.js @@ -7,7 +7,7 @@ components: myObject.v2.schema: type: object -bundling ./openapi.yaml... -๐Ÿ“ฆ Created a bundle for ./openapi.yaml at stdout ms. +bundling openapi.yaml... +๐Ÿ“ฆ Created a bundle for openapi.yaml at stdout ms. `; diff --git a/__tests__/bundle/oas3_1-pattern-porperties/snapshot.js b/__tests__/bundle/oas3_1-pattern-porperties/snapshot.js index 39ad8cd327..6b0b79e04e 100644 --- a/__tests__/bundle/oas3_1-pattern-porperties/snapshot.js +++ b/__tests__/bundle/oas3_1-pattern-porperties/snapshot.js @@ -23,7 +23,7 @@ components: object: type: object -bundling ./test.yaml... -๐Ÿ“ฆ Created a bundle for ./test.yaml at stdout ms. +bundling test.yaml... +๐Ÿ“ฆ Created a bundle for test.yaml at stdout ms. `; diff --git a/__tests__/bundle/operation-description-override-error/snapshot.js b/__tests__/bundle/operation-description-override-error/snapshot.js index a055c1c039..9c8decbb51 100644 --- a/__tests__/bundle/operation-description-override-error/snapshot.js +++ b/__tests__/bundle/operation-description-override-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E bundle operation-description-override-error 1`] = ` -bundling ./openapi.yaml... +bundling openapi.yaml... [1] openapi.yaml:23:7 at #/paths/~1pet/put/operationId Failed to read markdown override file for operation "updatePet". @@ -18,6 +18,6 @@ ENOENT: no such file or directory, open './update-pet-operation-description.md' Error was generated by the operation-description-override rule. -โŒ Errors encountered while bundling ./openapi.yaml: bundle not created (use --force to ignore errors). +โŒ Errors encountered while bundling openapi.yaml: bundle not created (use --force to ignore errors). `; diff --git a/__tests__/bundle/operation-description-override/snapshot.js b/__tests__/bundle/operation-description-override/snapshot.js index 36c7bccb97..1474817393 100644 --- a/__tests__/bundle/operation-description-override/snapshot.js +++ b/__tests__/bundle/operation-description-override/snapshot.js @@ -47,7 +47,7 @@ paths: description: ok components: {} -bundling ./openapi.yaml... -๐Ÿ“ฆ Created a bundle for ./openapi.yaml at stdout ms. +bundling openapi.yaml... +๐Ÿ“ฆ Created a bundle for openapi.yaml at stdout ms. `; diff --git a/__tests__/bundle/primitive-types/snapshot.js b/__tests__/bundle/primitive-types/snapshot.js index d2f057f214..051482392b 100644 --- a/__tests__/bundle/primitive-types/snapshot.js +++ b/__tests__/bundle/primitive-types/snapshot.js @@ -40,7 +40,7 @@ paths: key2: 2 components: {} -bundling ./openapi.yaml... -๐Ÿ“ฆ Created a bundle for ./openapi.yaml at stdout ms. +bundling openapi.yaml... +๐Ÿ“ฆ Created a bundle for openapi.yaml at stdout ms. `; diff --git a/__tests__/bundle/reference-ending-in-hash/snapshot.js b/__tests__/bundle/reference-ending-in-hash/snapshot.js index 12531f4891..6352794c4f 100644 --- a/__tests__/bundle/reference-ending-in-hash/snapshot.js +++ b/__tests__/bundle/reference-ending-in-hash/snapshot.js @@ -15,7 +15,7 @@ components: schemas: Pet: {} -bundling ./openapi.yaml... -๐Ÿ“ฆ Created a bundle for ./openapi.yaml at stdout ms. +bundling openapi.yaml... +๐Ÿ“ฆ Created a bundle for openapi.yaml at stdout ms. `; diff --git a/__tests__/bundle/remove-x-internal/snapshot.js b/__tests__/bundle/remove-x-internal/snapshot.js index 3094c9f0a1..ff8acb948a 100644 --- a/__tests__/bundle/remove-x-internal/snapshot.js +++ b/__tests__/bundle/remove-x-internal/snapshot.js @@ -39,7 +39,7 @@ components: enum: - cranberry -bundling ./main.yaml... -๐Ÿ“ฆ Created a bundle for ./main.yaml at stdout ms. +bundling main.yaml... +๐Ÿ“ฆ Created a bundle for main.yaml at stdout ms. `; diff --git a/__tests__/bundle/resolve-refs-from-x-attributes/snapshot.js b/__tests__/bundle/resolve-refs-from-x-attributes/snapshot.js index 6a1450be7e..4fd6d3faa9 100644 --- a/__tests__/bundle/resolve-refs-from-x-attributes/snapshot.js +++ b/__tests__/bundle/resolve-refs-from-x-attributes/snapshot.js @@ -19,7 +19,7 @@ info: components: {} Deprecated plugin format detected: plugin -bundling ./openapi.yaml... -๐Ÿ“ฆ Created a bundle for ./openapi.yaml at stdout ms. +bundling openapi.yaml... +๐Ÿ“ฆ Created a bundle for openapi.yaml at stdout ms. `; diff --git a/__tests__/bundle/tag-description-override-error/snapshot.js b/__tests__/bundle/tag-description-override-error/snapshot.js index f759e6000b..6c141f50b7 100644 --- a/__tests__/bundle/tag-description-override-error/snapshot.js +++ b/__tests__/bundle/tag-description-override-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E bundle tag-description-override-error 1`] = ` -bundling ./main.yaml... +bundling main.yaml... [1] main.yaml:17:5 at #/tags/0 Failed to read markdown override file for tag "pet". @@ -20,6 +20,6 @@ ENOENT: no such file or directory, open './pet-tag-description.md' Error was generated by the tag-description-override rule. -โŒ Errors encountered while bundling ./main.yaml: bundle not created (use --force to ignore errors). +โŒ Errors encountered while bundling main.yaml: bundle not created (use --force to ignore errors). `; diff --git a/__tests__/bundle/tag-description-override/snapshot.js b/__tests__/bundle/tag-description-override/snapshot.js index f593727482..a9799d79d4 100644 --- a/__tests__/bundle/tag-description-override/snapshot.js +++ b/__tests__/bundle/tag-description-override/snapshot.js @@ -43,7 +43,7 @@ paths: description: example description components: {} -bundling ./main.yaml... -๐Ÿ“ฆ Created a bundle for ./main.yaml at stdout ms. +bundling main.yaml... +๐Ÿ“ฆ Created a bundle for main.yaml at stdout ms. `; diff --git a/__tests__/commands.test.ts b/__tests__/commands.test.ts index c4f5ed92b7..7ad263ce04 100644 --- a/__tests__/commands.test.ts +++ b/__tests__/commands.test.ts @@ -616,14 +616,19 @@ describe('E2E', () => { test('apply a decorator to a specific api (without specifying the api)', () => { const testPath = join(folderPath, 'apply-per-api-decorators'); - const args = getParams('../../../packages/cli/src/index.ts', 'bundle'); + const args = getParams('../../../packages/cli/src/index.ts', 'bundle', [ + '--config=nested/redocly.yaml', + ]); const result = getCommandOutput(args, testPath); (expect(cleanupOutput(result))).toMatchSpecificSnapshot(join(testPath, 'snapshot.js')); }); test('apply a decorator to a specific api (when the api is specified as an alias)', () => { const testPath = join(folderPath, 'apply-per-api-decorators'); - const args = getParams('../../../packages/cli/src/index.ts', 'bundle', ['test@v1']); + const args = getParams('../../../packages/cli/src/index.ts', 'bundle', [ + '--config=nested/redocly.yaml', + 'test@v1', + ]); const result = getCommandOutput(args, testPath); (expect(cleanupOutput(result))).toMatchSpecificSnapshot(join(testPath, 'snapshot.js')); }); diff --git a/__tests__/lint/assertion-string-property-min-length/snapshot.js b/__tests__/lint/assertion-string-property-min-length/snapshot.js index 327d438cee..5e82ada6d9 100644 --- a/__tests__/lint/assertion-string-property-min-length/snapshot.js +++ b/__tests__/lint/assertion-string-property-min-length/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertion-string-property-min-length 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:31:17 at #/paths/~1pet~1findByStatus/get/responses/200/content/application~1json/schema rule/minLength failed because the Schema didn't meet the assertions: Required property minLength inside a string property @@ -39,7 +39,7 @@ rule/minLength failed because the Schema didn't meet the assertions: Required pr Error was generated by the rule/minLength rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 2 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/assertions-camel-case-twice/snapshot.js b/__tests__/lint/assertions-camel-case-twice/snapshot.js index 44293cf804..95c83b2e42 100644 --- a/__tests__/lint/assertions-camel-case-twice/snapshot.js +++ b/__tests__/lint/assertions-camel-case-twice/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-camel-case-twice 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:26:5 at #/components/parameters/header_roleCode Parameters must use camelCase @@ -31,7 +31,7 @@ Parameters must use camelCase Warning was generated by the rule/named-parameters-camelCase rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ You have 2 warnings. diff --git a/__tests__/lint/assertions-casing-camel-case-error/snapshot.js b/__tests__/lint/assertions-casing-camel-case-error/snapshot.js index 2603b58127..fb303208c7 100644 --- a/__tests__/lint/assertions-casing-camel-case-error/snapshot.js +++ b/__tests__/lint/assertions-casing-camel-case-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-casing-camel-case-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:19:20 at #/paths/~1pet~1findByStatus/get/operationId Operation id for get operation should be camelCase @@ -59,7 +59,7 @@ Named Parameters should be camelCase Error was generated by the rule/camel-case-on-value rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 4 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/assertions-casing-kebab-case-error/snapshot.js b/__tests__/lint/assertions-casing-kebab-case-error/snapshot.js index 2b300b3b34..39ba77594d 100644 --- a/__tests__/lint/assertions-casing-kebab-case-error/snapshot.js +++ b/__tests__/lint/assertions-casing-kebab-case-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-casing-kebab-case-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:19:20 at #/paths/~1pet~1findByStatus/get/operationId Operation id should be kebab-case @@ -45,7 +45,7 @@ Operation id should be kebab-case Error was generated by the rule/operation-id-kebab-case rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 3 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/assertions-casing-pascal-case-error/snapshot.js b/__tests__/lint/assertions-casing-pascal-case-error/snapshot.js index 2fae01ea22..92da7eff00 100644 --- a/__tests__/lint/assertions-casing-pascal-case-error/snapshot.js +++ b/__tests__/lint/assertions-casing-pascal-case-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-casing-pascal-case-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:19:20 at #/paths/~1pet~1findByStatus/get/operationId Operation id should be PascalCase @@ -45,7 +45,7 @@ Operation id should be PascalCase Error was generated by the rule/operation-id-pascal-case rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 3 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/assertions-casing-snake-case-error/snapshot.js b/__tests__/lint/assertions-casing-snake-case-error/snapshot.js index b9e676a72e..bc46ec02e5 100644 --- a/__tests__/lint/assertions-casing-snake-case-error/snapshot.js +++ b/__tests__/lint/assertions-casing-snake-case-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-casing-snake-case-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:19:20 at #/paths/~1pet~1findByStatus/get/operationId Operation id for get requests should be PascalCase @@ -45,7 +45,7 @@ Operation id should be snake_case Error was generated by the rule/operation-id-snake-case rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 3 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/assertions-custom-function-options/snapshot.js b/__tests__/lint/assertions-custom-function-options/snapshot.js index aa9c3e1205..6f369246ed 100644 --- a/__tests__/lint/assertions-custom-function-options/snapshot.js +++ b/__tests__/lint/assertions-custom-function-options/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-custom-function-options 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:20:16 at #/paths/~1pet~1findByStatus/get/summary Custom message Should have at least 16 characters @@ -77,7 +77,7 @@ rule/operation-summary-length failed because the Operation summary didn't meet t Error was generated by the rule/operation-summary-length rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 5 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/assertions-defined-error/snapshot.js b/__tests__/lint/assertions-defined-error/snapshot.js index 894a792df8..33c786a291 100644 --- a/__tests__/lint/assertions-defined-error/snapshot.js +++ b/__tests__/lint/assertions-defined-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-defined-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:19:7 at #/paths/~1pet~1findByStatus/get/security Operation security should be defined @@ -34,7 +34,7 @@ Response content should be defined Error was generated by the rule/response-content-defined rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 2 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/assertions-enum-error/snapshot.js b/__tests__/lint/assertions-enum-error/snapshot.js index 59e60fbed6..6b2c2caed4 100644 --- a/__tests__/lint/assertions-enum-error/snapshot.js +++ b/__tests__/lint/assertions-enum-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-enum-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:20:16 at #/paths/~1pet~1findByStatus/get/summary Operation summary value should be among of predefined values @@ -21,7 +21,7 @@ Did you mean: Error was generated by the rule/operation-summary-value rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/assertions-enum-on-keys-error/snapshot.js b/__tests__/lint/assertions-enum-on-keys-error/snapshot.js index 2feaf68a82..3cb4e23607 100644 --- a/__tests__/lint/assertions-enum-on-keys-error/snapshot.js +++ b/__tests__/lint/assertions-enum-on-keys-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-enum-on-keys-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:34:13 at #/paths/~1pet~1findByStatus/get/responses/200/content/application~1xml Only application/json can be used @@ -17,7 +17,7 @@ Only application/json can be used Error was generated by the rule/media-type-application-json rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/assertions-error/snapshot.js b/__tests__/lint/assertions-error/snapshot.js index d4f78253d5..4abcd70331 100644 --- a/__tests__/lint/assertions-error/snapshot.js +++ b/__tests__/lint/assertions-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:10:16 at #/info/description rule/anyType failed because the any description didn't meet the assertions: Should have at least 50 characters @@ -473,7 +473,7 @@ Examples names must use camelCase Error was generated by the rule/exampleMap rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 32 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/assertions-list-types/snapshot.js b/__tests__/lint/assertions-list-types/snapshot.js index 91553573ba..1f80aa49cd 100644 --- a/__tests__/lint/assertions-list-types/snapshot.js +++ b/__tests__/lint/assertions-list-types/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-list-types 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:10:3 at #/servers rule/ServerList failed because the ServerList didn't meet the assertions: Should have at most 0 characters @@ -56,7 +56,7 @@ rule/TagList failed because the TagList didn't meet the assertions: Should be no Error was generated by the rule/TagList rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 3 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/assertions-map-types/snapshot.js b/__tests__/lint/assertions-map-types/snapshot.js index f955bb1456..a5b8d66b18 100644 --- a/__tests__/lint/assertions-map-types/snapshot.js +++ b/__tests__/lint/assertions-map-types/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-map-types 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:12:7 at #/servers/0/variables/Port rule/serverVariableMap failed because the ServerVariablesMap didn't meet the assertions: "Port" should use flatcase @@ -77,7 +77,7 @@ rule/callbackMap failed because the CallbacksMap didn't meet the assertions: "my Error was generated by the rule/callbackMap rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 5 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/assertions-match-parent-keys/snapshot.js b/__tests__/lint/assertions-match-parent-keys/snapshot.js index e481845d21..c247d1c55f 100644 --- a/__tests__/lint/assertions-match-parent-keys/snapshot.js +++ b/__tests__/lint/assertions-match-parent-keys/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-match-parent-keys 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:27:15 at #/paths/~1pet~1findByStatus/post/x-test rule/match-parent-keys-with-defined failed because the Operation x-test didn't meet the assertions: false should be equal true @@ -49,7 +49,7 @@ rule/match-parent-keys-with-defined failed because the Operation x-test didn't m Error was generated by the rule/match-parent-keys-with-defined rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 3 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/assertions-max-length-array-error/snapshot.js b/__tests__/lint/assertions-max-length-array-error/snapshot.js index a329061554..c761f162d6 100644 --- a/__tests__/lint/assertions-max-length-array-error/snapshot.js +++ b/__tests__/lint/assertions-max-length-array-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-max-length-array-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:22:9 at #/paths/~1pet~1findByStatus/get/tags Operation tags should have maximum 2 items @@ -23,7 +23,7 @@ Operation tags should have maximum 2 items Error was generated by the rule/tags-max-length rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/assertions-max-length-string-error/snapshot.js b/__tests__/lint/assertions-max-length-string-error/snapshot.js index 67ca220dc6..385f9af18a 100644 --- a/__tests__/lint/assertions-max-length-string-error/snapshot.js +++ b/__tests__/lint/assertions-max-length-string-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-max-length-string-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:9:16 at #/info/description Info description should be maximum 10 chars length @@ -17,7 +17,7 @@ Info description should be maximum 10 chars length Error was generated by the rule/description-max-length rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/assertions-min-length-array-error/snapshot.js b/__tests__/lint/assertions-min-length-array-error/snapshot.js index 3e12e173e1..f13384d950 100644 --- a/__tests__/lint/assertions-min-length-array-error/snapshot.js +++ b/__tests__/lint/assertions-min-length-array-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-min-length-array-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:22:9 at #/paths/~1pet~1findByStatus/get/tags Operation tags should have minimum 4 items @@ -23,7 +23,7 @@ Operation tags should have minimum 4 items Error was generated by the rule/tags-min-length rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/assertions-min-length-string-error/snapshot.js b/__tests__/lint/assertions-min-length-string-error/snapshot.js index 46eef8099b..4d10c5f49e 100644 --- a/__tests__/lint/assertions-min-length-string-error/snapshot.js +++ b/__tests__/lint/assertions-min-length-string-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-min-length-string-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:9:16 at #/info/description Info description should be minimum 20 chars length @@ -17,7 +17,7 @@ Info description should be minimum 20 chars length Error was generated by the rule/description-min-length rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/assertions-mutually-exclusive-error/snapshot.js b/__tests__/lint/assertions-mutually-exclusive-error/snapshot.js index 2288adbad7..20da69452e 100644 --- a/__tests__/lint/assertions-mutually-exclusive-error/snapshot.js +++ b/__tests__/lint/assertions-mutually-exclusive-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-mutually-exclusive-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:18:5 at #/paths/~1pet~1findByStatus/get Operation should not have summary and tags fields simultaneously @@ -17,7 +17,7 @@ Operation should not have summary and tags fields simultaneously Error was generated by the rule/path-item-mutually-exclusive rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/assertions-mutually-required-error/snapshot.js b/__tests__/lint/assertions-mutually-required-error/snapshot.js index 98493c691d..b87032becc 100644 --- a/__tests__/lint/assertions-mutually-required-error/snapshot.js +++ b/__tests__/lint/assertions-mutually-required-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-mutually-required-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:18:5 at #/paths/~1pet~1findByStatus/get Operation should have summary and security fields simultaneously @@ -17,7 +17,7 @@ Operation should have summary and security fields simultaneously Error was generated by the rule/path-item-mutually-required rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/assertions-non-empty-error/snapshot.js b/__tests__/lint/assertions-non-empty-error/snapshot.js index 9bcd54fd77..d109251aa2 100644 --- a/__tests__/lint/assertions-non-empty-error/snapshot.js +++ b/__tests__/lint/assertions-non-empty-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-non-empty-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:20:7 at #/paths/~1pet~1findByStatus/get/summary Operation summary should not be empty @@ -17,7 +17,7 @@ Operation summary should not be empty Error was generated by the rule/summary-non-empty rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/assertions-non-empty-off/snapshot.js b/__tests__/lint/assertions-non-empty-off/snapshot.js index 0a47dc09ae..791d651751 100644 --- a/__tests__/lint/assertions-non-empty-off/snapshot.js +++ b/__tests__/lint/assertions-non-empty-off/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint assertions-non-empty-off 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/assertions-non-empty-warn/snapshot.js b/__tests__/lint/assertions-non-empty-warn/snapshot.js index 167b145c5b..8260d9ef41 100644 --- a/__tests__/lint/assertions-non-empty-warn/snapshot.js +++ b/__tests__/lint/assertions-non-empty-warn/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-non-empty-warn 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:20:7 at #/paths/~1pet~1findByStatus/get/summary Operation summary should not be empty @@ -17,7 +17,7 @@ Operation summary should not be empty Warning was generated by the rule/summary-non-empty rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ You have 1 warning. diff --git a/__tests__/lint/assertions-pattern-error/snapshot.js b/__tests__/lint/assertions-pattern-error/snapshot.js index 073eecdc74..96c5b6778c 100644 --- a/__tests__/lint/assertions-pattern-error/snapshot.js +++ b/__tests__/lint/assertions-pattern-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-pattern-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:20:16 at #/paths/~1pet~1findByStatus/get/summary rule/summary-pattern failed because the Operation summary didn't meet the assertions: @@ -19,7 +19,7 @@ rule/summary-pattern failed because the Operation summary didn't meet the assert Error was generated by the rule/summary-pattern rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/assertions-pattern-report-location/snapshot.js b/__tests__/lint/assertions-pattern-report-location/snapshot.js index 8d39d1d3c8..0aeddf140e 100644 --- a/__tests__/lint/assertions-pattern-report-location/snapshot.js +++ b/__tests__/lint/assertions-pattern-report-location/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-pattern-report-location 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:11:3 at #/paths/~1two~1test Two consecutive path segments don't have a variable @@ -45,7 +45,7 @@ Parameters name should contain the \`Correct\` word Error was generated by the rule/parameters-name rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 3 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/assertions-pattern-with-object/snapshot.js b/__tests__/lint/assertions-pattern-with-object/snapshot.js index 3241ea02ae..07b352a124 100644 --- a/__tests__/lint/assertions-pattern-with-object/snapshot.js +++ b/__tests__/lint/assertions-pattern-with-object/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-pattern-with-object 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:29:34 at #/paths/~1pet~1findByStatus/get/responses/200/content/application~1json/schema/properties/id/description rule/no-description-future-past failed because the any description didn't meet the assertions: "Will be use." should not match a regex /(was|will|were)/i @@ -17,7 +17,7 @@ rule/no-description-future-past failed because the any description didn't meet t Error was generated by the rule/no-description-future-past rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/assertions-patternProperties/snapshot.js b/__tests__/lint/assertions-patternProperties/snapshot.js index e42ea5ad4d..a30408bedc 100644 --- a/__tests__/lint/assertions-patternProperties/snapshot.js +++ b/__tests__/lint/assertions-patternProperties/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-patternProperties 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] schema.json:4:5 at #/properties/incorrectlyNamedProperty rule/response-in-snake_case failed because the SchemaProperties didn't meet the assertions: "incorrectlyNamedProperty" should use snake_case @@ -17,7 +17,7 @@ rule/response-in-snake_case failed because the SchemaProperties didn't meet the Error was generated by the rule/response-in-snake_case rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/assertions-property-key-not-allowed/snapshot.js b/__tests__/lint/assertions-property-key-not-allowed/snapshot.js index e3369d4054..76732f9014 100644 --- a/__tests__/lint/assertions-property-key-not-allowed/snapshot.js +++ b/__tests__/lint/assertions-property-key-not-allowed/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-property-key-not-allowed 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... Something went wrong when processing ./__tests__/lint/assertions-property-key-not-allowed/openapi.yaml: - The 'disallowed' assertion can't be used on properties. Please remove the 'property' key. diff --git a/__tests__/lint/assertions-property-key-required/snapshot.js b/__tests__/lint/assertions-property-key-required/snapshot.js index 1782c52e7d..3b5877c96d 100644 --- a/__tests__/lint/assertions-property-key-required/snapshot.js +++ b/__tests__/lint/assertions-property-key-required/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-property-key-required 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... Something went wrong when processing ./__tests__/lint/assertions-property-key-required/openapi.yaml: - The 'nonEmpty' assertion can't be used on all keys. Please provide a single property. diff --git a/__tests__/lint/assertions-query-in-parameters/snapshot.js b/__tests__/lint/assertions-query-in-parameters/snapshot.js index d8edc82f70..c377b1d2b7 100644 --- a/__tests__/lint/assertions-query-in-parameters/snapshot.js +++ b/__tests__/lint/assertions-query-in-parameters/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-query-in-parameters 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:23:15 at #/paths/~1pet~1findByStatus/get/parameters/0/in rule/query-in-parameters failed because the Parameter in didn't meet the assertions: query should be equal path @@ -17,7 +17,7 @@ rule/query-in-parameters failed because the Parameter in didn't meet the asserti Error was generated by the rule/query-in-parameters rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/assertions-ref-forbidden-error/snapshot.js b/__tests__/lint/assertions-ref-forbidden-error/snapshot.js index e75092b745..573bddada1 100644 --- a/__tests__/lint/assertions-ref-forbidden-error/snapshot.js +++ b/__tests__/lint/assertions-ref-forbidden-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-ref-forbidden-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:47:17 at #/paths/~1pets/get/responses/default/content/application~1json/schema Response MediaType schema should NOT have a ref @@ -31,7 +31,7 @@ PathItems should NOT should have a ref Error was generated by the rule/ref-forbidden-no-property rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 2 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/assertions-ref-pattern-error/snapshot.js b/__tests__/lint/assertions-ref-pattern-error/snapshot.js index bed2b1a26f..01e202dd05 100644 --- a/__tests__/lint/assertions-ref-pattern-error/snapshot.js +++ b/__tests__/lint/assertions-ref-pattern-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-ref-pattern-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:12:3 at #/paths/~1pets PathItem should contain ref to components/paths folder @@ -73,7 +73,7 @@ Response MediaType schema should contain ref to components/schemas folder Error was generated by the rule/ref-pattern rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 5 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/assertions-ref-required-error/snapshot.js b/__tests__/lint/assertions-ref-required-error/snapshot.js index 5d3dd8f856..cb9dbab45e 100644 --- a/__tests__/lint/assertions-ref-required-error/snapshot.js +++ b/__tests__/lint/assertions-ref-required-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-ref-required-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:12:3 at #/paths/~1pets PathItems should have refs @@ -45,7 +45,7 @@ Response MediaType schema should have a ref Error was generated by the rule/ref-required rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 3 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/assertions-require-any-error/snapshot.js b/__tests__/lint/assertions-require-any-error/snapshot.js index 7bfdb337f3..c06ee3651e 100644 --- a/__tests__/lint/assertions-require-any-error/snapshot.js +++ b/__tests__/lint/assertions-require-any-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-require-any-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:18:5 at #/paths/~1pet~1findByStatus/get Operation must have one of properties defined: description or externalDocs @@ -17,7 +17,7 @@ Operation must have one of properties defined: description or externalDocs Error was generated by the rule/operation-require-any-description-or-external rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/assertions-show-suggestions/snapshot.js b/__tests__/lint/assertions-show-suggestions/snapshot.js index 6fe383ed9f..1b52eda203 100644 --- a/__tests__/lint/assertions-show-suggestions/snapshot.js +++ b/__tests__/lint/assertions-show-suggestions/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-show-suggestions 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:20:16 at #/paths/~1pet~1findByStatus/get/summary Operation summary should have at least 10 chars length @@ -21,7 +21,7 @@ Did you mean: Error was generated by the rule/path-item-suggest rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/assertions-type-integer-in-parameter/snapshot.js b/__tests__/lint/assertions-type-integer-in-parameter/snapshot.js index ef35828078..27238292b1 100644 --- a/__tests__/lint/assertions-type-integer-in-parameter/snapshot.js +++ b/__tests__/lint/assertions-type-integer-in-parameter/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-type-integer-in-parameter 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:26:19 at #/paths/~1pet~1findByStatus/get/parameters/0/schema/type rule/no-type-integer-in-parameter failed because the Schema type didn't meet the assertions: "integer" should be one of the predefined values @@ -17,7 +17,7 @@ rule/no-type-integer-in-parameter failed because the Schema type didn't meet the Error was generated by the rule/no-type-integer-in-parameter rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/assertions-type-integer-in-schema-response/snapshot.js b/__tests__/lint/assertions-type-integer-in-schema-response/snapshot.js index 1800a2a74c..b9c0f2bfad 100644 --- a/__tests__/lint/assertions-type-integer-in-schema-response/snapshot.js +++ b/__tests__/lint/assertions-type-integer-in-schema-response/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint assertions-type-integer-in-schema-response 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/assertions-undefined-error/snapshot.js b/__tests__/lint/assertions-undefined-error/snapshot.js index fa1e1aec5f..23b87c13f5 100644 --- a/__tests__/lint/assertions-undefined-error/snapshot.js +++ b/__tests__/lint/assertions-undefined-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-undefined-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:20:16 at #/paths/~1pet~1findByStatus/get/summary Operation summary should be undefined @@ -17,7 +17,7 @@ Operation summary should be undefined Error was generated by the rule/summary-undefined rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/assertions-vendor-extensions/snapshot.js b/__tests__/lint/assertions-vendor-extensions/snapshot.js index f865357414..5a9d3fee96 100644 --- a/__tests__/lint/assertions-vendor-extensions/snapshot.js +++ b/__tests__/lint/assertions-vendor-extensions/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint assertions-vendor-extensions 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:8:12 at #/info/x-my-extension/prop2 rule/vendor-extension-in-info-section failed because the SpecExtension prop2 didn't meet the assertions: "invalid-value-should-report" should be one of the predefined values @@ -45,7 +45,7 @@ rule/vendor-extension failed because the SpecExtension prop didn't meet the asse Error was generated by the rule/vendor-extension rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 3 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/assertions/snapshot.js b/__tests__/lint/assertions/snapshot.js index 7f79c1f4bf..e0784818b7 100644 --- a/__tests__/lint/assertions/snapshot.js +++ b/__tests__/lint/assertions/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint assertions 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/async2/snapshot.js b/__tests__/lint/async2/snapshot.js index 431faca5e5..eff67a8619 100644 --- a/__tests__/lint/async2/snapshot.js +++ b/__tests__/lint/async2/snapshot.js @@ -2,56 +2,56 @@ exports[`E2E lint async2 1`] = ` -validating /anyof.yml... -/anyof.yml: validated in ms +validating anyof.yml... +anyof.yml: validated in ms -validating /application-headers.yml... -/application-headers.yml: validated in ms +validating application-headers.yml... +application-headers.yml: validated in ms -validating /correlation-id.yml... -/correlation-id.yml: validated in ms +validating correlation-id.yml... +correlation-id.yml: validated in ms -validating /gitter-streaming.yml... -/gitter-streaming.yml: validated in ms +validating gitter-streaming.yml... +gitter-streaming.yml: validated in ms -validating /mercure.yml... -/mercure.yml: validated in ms +validating mercure.yml... +mercure.yml: validated in ms -validating /not.yml... -/not.yml: validated in ms +validating not.yml... +not.yml: validated in ms -validating /oneof.yml... -/oneof.yml: validated in ms +validating oneof.yml... +oneof.yml: validated in ms -validating /operation-security.yml... -/operation-security.yml: validated in ms +validating operation-security.yml... +operation-security.yml: validated in ms -validating /operation-with-tags.yml... -/operation-with-tags.yml: validated in ms +validating operation-with-tags.yml... +operation-with-tags.yml: validated in ms -validating /rpc-client.yml... -/rpc-client.yml: validated in ms +validating rpc-client.yml... +rpc-client.yml: validated in ms -validating /rpc-server.yml... -/rpc-server.yml: validated in ms +validating rpc-server.yml... +rpc-server.yml: validated in ms -validating /simple.yml... -/simple.yml: validated in ms +validating simple.yml... +simple.yml: validated in ms -validating /slack-rtm.yml... -/slack-rtm.yml: validated in ms +validating slack-rtm.yml... +slack-rtm.yml: validated in ms -validating /streetlights-kafka.yml... -/streetlights-kafka.yml: validated in ms +validating streetlights-kafka.yml... +streetlights-kafka.yml: validated in ms -validating /streetlights-mqtt.yml... -/streetlights-mqtt.yml: validated in ms +validating streetlights-mqtt.yml... +streetlights-mqtt.yml: validated in ms -validating /streetlights-operation-security.yml... -/streetlights-operation-security.yml: validated in ms +validating streetlights-operation-security.yml... +streetlights-operation-security.yml: validated in ms -validating /websocket-gemini.yml... -/websocket-gemini.yml: validated in ms +validating websocket-gemini.yml... +websocket-gemini.yml: validated in ms Woohoo! Your API descriptions are valid. ๐ŸŽ‰ diff --git a/__tests__/lint/async3/snapshot.js b/__tests__/lint/async3/snapshot.js index a68b1f072c..0e46c8c8e7 100644 --- a/__tests__/lint/async3/snapshot.js +++ b/__tests__/lint/async3/snapshot.js @@ -2,53 +2,53 @@ exports[`E2E lint async3 1`] = ` -validating /anyof.yml... -/anyof.yml: validated in ms +validating anyof.yml... +anyof.yml: validated in ms -validating /application-headers.yml... -/application-headers.yml: validated in ms +validating application-headers.yml... +application-headers.yml: validated in ms -validating /correlation-id.yml... -/correlation-id.yml: validated in ms +validating correlation-id.yml... +correlation-id.yml: validated in ms -validating /gitter-streaming.yml... -/gitter-streaming.yml: validated in ms +validating gitter-streaming.yml... +gitter-streaming.yml: validated in ms -validating /mercure.yml... -/mercure.yml: validated in ms +validating mercure.yml... +mercure.yml: validated in ms -validating /not.yml... -/not.yml: validated in ms +validating not.yml... +not.yml: validated in ms -validating /oneof.yml... -/oneof.yml: validated in ms +validating oneof.yml... +oneof.yml: validated in ms -validating /operation-security.yml... -/operation-security.yml: validated in ms +validating operation-security.yml... +operation-security.yml: validated in ms -validating /rpc-client.yml... -/rpc-client.yml: validated in ms +validating rpc-client.yml... +rpc-client.yml: validated in ms -validating /rpc-server.yml... -/rpc-server.yml: validated in ms +validating rpc-server.yml... +rpc-server.yml: validated in ms -validating /simple.yml... -/simple.yml: validated in ms +validating simple.yml... +simple.yml: validated in ms -validating /slack-rtm.yml... -/slack-rtm.yml: validated in ms +validating slack-rtm.yml... +slack-rtm.yml: validated in ms -validating /streetlights-kafka.yml... -/streetlights-kafka.yml: validated in ms +validating streetlights-kafka.yml... +streetlights-kafka.yml: validated in ms -validating /streetlights-mqtt.yml... -/streetlights-mqtt.yml: validated in ms +validating streetlights-mqtt.yml... +streetlights-mqtt.yml: validated in ms -validating /streetlights-operation-security.yml... -/streetlights-operation-security.yml: validated in ms +validating streetlights-operation-security.yml... +streetlights-operation-security.yml: validated in ms -validating /websocket-gemini.yml... -/websocket-gemini.yml: validated in ms +validating websocket-gemini.yml... +websocket-gemini.yml: validated in ms Woohoo! Your API descriptions are valid. ๐ŸŽ‰ diff --git a/__tests__/lint/deprecated-apiDefinitions/snapshot.js b/__tests__/lint/deprecated-apiDefinitions/snapshot.js index 29f48eecc2..83d2c2438a 100644 --- a/__tests__/lint/deprecated-apiDefinitions/snapshot.js +++ b/__tests__/lint/deprecated-apiDefinitions/snapshot.js @@ -37,7 +37,7 @@ Warning was generated by the configuration spec rule. โš ๏ธ Your config has 2 warnings. -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:2:1 at #/info/contact Info object should contain \`contact\` field. @@ -51,7 +51,7 @@ Info object should contain \`contact\` field. Warning was generated by the info-contact rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ You have 1 warning. diff --git a/__tests__/lint/deprecated-lint/snapshot.js b/__tests__/lint/deprecated-lint/snapshot.js index fd24be72b0..64c3fe2fc0 100644 --- a/__tests__/lint/deprecated-lint/snapshot.js +++ b/__tests__/lint/deprecated-lint/snapshot.js @@ -40,7 +40,7 @@ Warning was generated by the configuration spec rule. โš ๏ธ Your config has 2 warnings. -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:11:7 at #/paths/~1pet~1findByStatus/get/responses Operation must have at least one \`4XX\` response. @@ -68,7 +68,7 @@ Info object should contain \`contact\` field. Warning was generated by the info-contact rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error and 1 warning. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/deprecated-styleguide/snapshot.js b/__tests__/lint/deprecated-styleguide/snapshot.js index ae63d54668..eb3b4f09c2 100644 --- a/__tests__/lint/deprecated-styleguide/snapshot.js +++ b/__tests__/lint/deprecated-styleguide/snapshot.js @@ -32,7 +32,7 @@ Warning was generated by the configuration spec rule. โš ๏ธ Your config has 2 warnings. -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:11:7 at #/paths/~1pet~1findByStatus/get/responses Operation must have at least one \`4XX\` response. @@ -60,7 +60,7 @@ Info object should contain \`contact\` field. Warning was generated by the info-contact rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error and 1 warning. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/info-contact--lint-in-apis/snapshot.js b/__tests__/lint/info-contact--lint-in-apis/snapshot.js index ea1bc41eb1..92e783ecca 100644 --- a/__tests__/lint/info-contact--lint-in-apis/snapshot.js +++ b/__tests__/lint/info-contact--lint-in-apis/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint info-contact--lint-in-apis 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/info-contact-not-present-warning/snapshot.js b/__tests__/lint/info-contact-not-present-warning/snapshot.js index c31b26eb8a..309669a08b 100644 --- a/__tests__/lint/info-contact-not-present-warning/snapshot.js +++ b/__tests__/lint/info-contact-not-present-warning/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint info-contact-not-present-warning 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:2:1 at #/info/contact Info object should contain \`contact\` field. @@ -16,7 +16,7 @@ Info object should contain \`contact\` field. Warning was generated by the info-contact rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ You have 1 warning. diff --git a/__tests__/lint/info-contact/snapshot.js b/__tests__/lint/info-contact/snapshot.js index f9c5077a4f..d81e3134ce 100644 --- a/__tests__/lint/info-contact/snapshot.js +++ b/__tests__/lint/info-contact/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint info-contact 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/info-license-rule-not-present-warning/snapshot.js b/__tests__/lint/info-license-rule-not-present-warning/snapshot.js index 8697c82477..227e71b7da 100644 --- a/__tests__/lint/info-license-rule-not-present-warning/snapshot.js +++ b/__tests__/lint/info-license-rule-not-present-warning/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint info-license-rule-not-present-warning 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:2:1 at #/info Info object should contain \`license\` field. @@ -16,7 +16,7 @@ Info object should contain \`license\` field. Warning was generated by the info-license rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ You have 1 warning. diff --git a/__tests__/lint/info-license-rule/snapshot.js b/__tests__/lint/info-license-rule/snapshot.js index 4e69ae1c67..a175f7e875 100644 --- a/__tests__/lint/info-license-rule/snapshot.js +++ b/__tests__/lint/info-license-rule/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint info-license-rule 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/info-license-url-missing-warning/snapshot.js b/__tests__/lint/info-license-url-missing-warning/snapshot.js index f7bd4f53a9..83bf9312c6 100644 --- a/__tests__/lint/info-license-url-missing-warning/snapshot.js +++ b/__tests__/lint/info-license-url-missing-warning/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint info-license-url-missing-warning 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:5:3 at #/info/license/url License object should contain \`url\` field. @@ -17,7 +17,7 @@ License object should contain \`url\` field. Warning was generated by the info-license-url rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ You have 1 warning. diff --git a/__tests__/lint/info-license-url-rule/snapshot.js b/__tests__/lint/info-license-url-rule/snapshot.js index fed3aaeffb..9b40eec19a 100644 --- a/__tests__/lint/info-license-url-rule/snapshot.js +++ b/__tests__/lint/info-license-url-rule/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint info-license-url-rule 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/merge-lint-configs/snapshot.js b/__tests__/lint/merge-lint-configs/snapshot.js index e432c69d68..333fbc78fa 100644 --- a/__tests__/lint/merge-lint-configs/snapshot.js +++ b/__tests__/lint/merge-lint-configs/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint merge-lint-configs 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:2:1 at #/info/contact Info object should contain \`contact\` field. @@ -16,7 +16,7 @@ Info object should contain \`contact\` field. Warning was generated by the info-contact rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ You have 1 warning. diff --git a/__tests__/lint/nested-extends/snapshot.js b/__tests__/lint/nested-extends/snapshot.js index 42d3fba88f..044e0133ab 100644 --- a/__tests__/lint/nested-extends/snapshot.js +++ b/__tests__/lint/nested-extends/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint nested-extends 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:13:17 at #/paths/~1ping~1{id}~1{test}/get/parameters/0/name Path parameter \`test_id\` is not used in the path \`/ping/{id}/{test}\`. @@ -58,7 +58,7 @@ Info object should contain \`contact\` field. Warning was generated by the info-contact rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 3 errors and 1 warning. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/no-empty-servers-rule/snapshot.js b/__tests__/lint/no-empty-servers-rule/snapshot.js index f1b7c9c5df..ee6cba7cc6 100644 --- a/__tests__/lint/no-empty-servers-rule/snapshot.js +++ b/__tests__/lint/no-empty-servers-rule/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint no-empty-servers-rule 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/no-empty-servers-warning/snapshot.js b/__tests__/lint/no-empty-servers-warning/snapshot.js index c1b4b1d8df..3243f8ca36 100644 --- a/__tests__/lint/no-empty-servers-warning/snapshot.js +++ b/__tests__/lint/no-empty-servers-warning/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint no-empty-servers-warning 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:6:1 at #/servers Servers must be a non-empty array. @@ -17,7 +17,7 @@ Servers must be a non-empty array. Warning was generated by the no-empty-servers rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ You have 1 warning. diff --git a/__tests__/lint/no-enum-type-mismatch-error-recommended-config/snapshot.js b/__tests__/lint/no-enum-type-mismatch-error-recommended-config/snapshot.js index 5c71cd405f..aaf3441f9d 100644 --- a/__tests__/lint/no-enum-type-mismatch-error-recommended-config/snapshot.js +++ b/__tests__/lint/no-enum-type-mismatch-error-recommended-config/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint no-enum-type-mismatch-error-recommended-config 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:1:1 at #/openapi Servers must be present. @@ -55,7 +55,7 @@ Info object should contain \`license\` field. Warning was generated by the info-license rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 3 errors and 1 warning. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/no-enum-type-mismatch-error/snapshot.js b/__tests__/lint/no-enum-type-mismatch-error/snapshot.js index f7af0d2088..3758c2ddcc 100644 --- a/__tests__/lint/no-enum-type-mismatch-error/snapshot.js +++ b/__tests__/lint/no-enum-type-mismatch-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint no-enum-type-mismatch-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:21:21 at #/paths/~1ping/get/responses/200/content/application~1json/schema/enum/3 Enum value \`string\` must be of allowed types: \`integer,array\`. @@ -31,7 +31,7 @@ All values of \`enum\` field must be of the same type as the \`type\` field: exp Error was generated by the no-enum-type-mismatch rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 2 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/no-enum-type-mismatch/snapshot.js b/__tests__/lint/no-enum-type-mismatch/snapshot.js index d1d993a0ff..dc6bb54f94 100644 --- a/__tests__/lint/no-enum-type-mismatch/snapshot.js +++ b/__tests__/lint/no-enum-type-mismatch/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint no-enum-type-mismatch 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/no-http-verbs-in-paths-error/snapshot.js b/__tests__/lint/no-http-verbs-in-paths-error/snapshot.js index 43ef194872..0de86ea60f 100644 --- a/__tests__/lint/no-http-verbs-in-paths-error/snapshot.js +++ b/__tests__/lint/no-http-verbs-in-paths-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint no-http-verbs-in-paths-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:18:3 at #/paths/~1pet~1findByPut path \`/pet/findByPut\` should not contain http verb put @@ -101,7 +101,7 @@ path \`/input\` should not contain http verb put Error was generated by the no-http-verbs-in-paths rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 7 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/no-http-verbs-in-paths-split-words-error/snapshot.js b/__tests__/lint/no-http-verbs-in-paths-split-words-error/snapshot.js index 36ec6b7446..3bae43e5cf 100644 --- a/__tests__/lint/no-http-verbs-in-paths-split-words-error/snapshot.js +++ b/__tests__/lint/no-http-verbs-in-paths-split-words-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint no-http-verbs-in-paths-split-words-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:18:3 at #/paths/~1pet~1findByPut path \`/pet/findByPut\` should not contain http verb put @@ -73,7 +73,7 @@ path \`/my_post\` should not contain http verb post Error was generated by the no-http-verbs-in-paths rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 5 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/no-invalid-media-type-examples-invalid-schema/snapshot.js b/__tests__/lint/no-invalid-media-type-examples-invalid-schema/snapshot.js index 1569745716..9a5af6ba84 100644 --- a/__tests__/lint/no-invalid-media-type-examples-invalid-schema/snapshot.js +++ b/__tests__/lint/no-invalid-media-type-examples-invalid-schema/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint no-invalid-media-type-examples-invalid-schema 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:16:17 at #/components/schemas/Test/nullable The \`type\` field must be defined when the \`nullable\` field is used. @@ -33,7 +33,7 @@ referenced from openapi.yaml:27:15 at #/paths/~1test/get/responses/202/content/a Warning was generated by the no-invalid-media-type-examples rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error and 1 warning. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/no-invalid-media-type-examples-multiple-valid-refs-different-files/snapshot.js b/__tests__/lint/no-invalid-media-type-examples-multiple-valid-refs-different-files/snapshot.js index 1cb5d0b959..fb5f70c8bf 100644 --- a/__tests__/lint/no-invalid-media-type-examples-multiple-valid-refs-different-files/snapshot.js +++ b/__tests__/lint/no-invalid-media-type-examples-multiple-valid-refs-different-files/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint no-invalid-media-type-examples-multiple-valid-refs-different-files 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/no-invalid-media-type-examples-multiple-valid-refs/snapshot.js b/__tests__/lint/no-invalid-media-type-examples-multiple-valid-refs/snapshot.js index 255b2115c7..f3f024f63e 100644 --- a/__tests__/lint/no-invalid-media-type-examples-multiple-valid-refs/snapshot.js +++ b/__tests__/lint/no-invalid-media-type-examples-multiple-valid-refs/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint no-invalid-media-type-examples-multiple-valid-refs 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/no-invalid-media-type-examples-recursion-oneOf/snapshot.js b/__tests__/lint/no-invalid-media-type-examples-recursion-oneOf/snapshot.js index c9f6368ecd..b1d71ff007 100644 --- a/__tests__/lint/no-invalid-media-type-examples-recursion-oneOf/snapshot.js +++ b/__tests__/lint/no-invalid-media-type-examples-recursion-oneOf/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint no-invalid-media-type-examples-recursion-oneOf 1`] = ` -validating /openapi.json... -/openapi.json: validated in ms +validating openapi.json... +openapi.json: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/no-invalid-media-type-examples-recursion/snapshot.js b/__tests__/lint/no-invalid-media-type-examples-recursion/snapshot.js index 13dafb1983..df3e7312ec 100644 --- a/__tests__/lint/no-invalid-media-type-examples-recursion/snapshot.js +++ b/__tests__/lint/no-invalid-media-type-examples-recursion/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint no-invalid-media-type-examples-recursion 1`] = ` -validating /openapi.json... +validating openapi.json... [1] openapi.json:29:28 at #/paths/~1test/get/responses/202/content/application~1json/example Example value must conform to the schema: must have required property 'c'. @@ -40,7 +40,7 @@ referenced from openapi.json:27:35 at #/paths/~1test/get/responses/202/content/a Warning was generated by the no-invalid-media-type-examples rule. -/openapi.json: validated in ms +openapi.json: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ You have 2 warnings. diff --git a/__tests__/lint/no-invalid-media-type-examples/snapshot.js b/__tests__/lint/no-invalid-media-type-examples/snapshot.js index 911c35d450..50a102d054 100644 --- a/__tests__/lint/no-invalid-media-type-examples/snapshot.js +++ b/__tests__/lint/no-invalid-media-type-examples/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint no-invalid-media-type-examples 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] example.yaml:1:1 at #/ Example value must conform to the schema: type must be string. @@ -16,7 +16,7 @@ referenced from openapi.yaml:18:13 at #/paths/~1pet/get/requestBody/content/appl Error was generated by the no-invalid-media-type-examples rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/no-invalid-schema-examples-array-error/snapshot.js b/__tests__/lint/no-invalid-schema-examples-array-error/snapshot.js index cff15f25d8..7af68eaca8 100644 --- a/__tests__/lint/no-invalid-schema-examples-array-error/snapshot.js +++ b/__tests__/lint/no-invalid-schema-examples-array-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint no-invalid-schema-examples-array-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:33:28 at #/paths/~1my_post/post/requestBody/content/application~1json/schema/properties/my_list/example Example value must conform to the schema: type must be array. @@ -19,7 +19,7 @@ referenced from openapi.yaml:29:19 at #/paths/~1my_post/post/requestBody/content Error was generated by the no-invalid-schema-examples rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/no-invalid-schema-examples-nested-error/snapshot.js b/__tests__/lint/no-invalid-schema-examples-nested-error/snapshot.js index fe145ebfec..c3330c499c 100644 --- a/__tests__/lint/no-invalid-schema-examples-nested-error/snapshot.js +++ b/__tests__/lint/no-invalid-schema-examples-nested-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint no-invalid-schema-examples-nested-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:20:23 at #/paths/~1pet/parameters/0/schema/example/property Example value must conform to the schema: \`property\` property type must be string. @@ -130,7 +130,7 @@ referenced from openapi.yaml:48:7 at #/components/schemas/Test Error was generated by the no-invalid-schema-examples rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 8 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/no-invalid-schema-examples-oas3.1-error/snapshot.js b/__tests__/lint/no-invalid-schema-examples-oas3.1-error/snapshot.js index c0779c991d..329535ec51 100644 --- a/__tests__/lint/no-invalid-schema-examples-oas3.1-error/snapshot.js +++ b/__tests__/lint/no-invalid-schema-examples-oas3.1-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint no-invalid-schema-examples-oas3.1-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:34:21 at #/paths/~1my_post/post/requestBody/content/application~1json/schema/properties/one/example Example value must conform to the schema: type must be integer,string. @@ -37,7 +37,7 @@ referenced from openapi.yaml:36:19 at #/paths/~1my_post/post/requestBody/content Error was generated by the no-invalid-schema-examples rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 2 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/no-invalid-schema-examples-oas3.1/snapshot.js b/__tests__/lint/no-invalid-schema-examples-oas3.1/snapshot.js index 52d2008816..2543f12504 100644 --- a/__tests__/lint/no-invalid-schema-examples-oas3.1/snapshot.js +++ b/__tests__/lint/no-invalid-schema-examples-oas3.1/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint no-invalid-schema-examples-oas3.1 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/no-invalid-schema-examples-string-number-error/snapshot.js b/__tests__/lint/no-invalid-schema-examples-string-number-error/snapshot.js index 928296e0c2..e35ac0997b 100644 --- a/__tests__/lint/no-invalid-schema-examples-string-number-error/snapshot.js +++ b/__tests__/lint/no-invalid-schema-examples-string-number-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint no-invalid-schema-examples-string-number-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:30:28 at #/paths/~1my_post/post/requestBody/content/application~1json/schema/properties/prop_string/example Example value must conform to the schema: type must be string. @@ -51,7 +51,7 @@ referenced from openapi.yaml:35:19 at #/paths/~1my_post/post/requestBody/content Error was generated by the no-invalid-schema-examples rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 3 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/no-invalid-schema-examples/snapshot.js b/__tests__/lint/no-invalid-schema-examples/snapshot.js index 91da045208..e1f8b9bdfe 100644 --- a/__tests__/lint/no-invalid-schema-examples/snapshot.js +++ b/__tests__/lint/no-invalid-schema-examples/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint no-invalid-schema-examples 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/no-path-trailing-slash-error/snapshot.js b/__tests__/lint/no-path-trailing-slash-error/snapshot.js index 34303a53df..fece368ae2 100644 --- a/__tests__/lint/no-path-trailing-slash-error/snapshot.js +++ b/__tests__/lint/no-path-trailing-slash-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint no-path-trailing-slash-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:7:3 at #/paths/~1ping~1 \`/ping/\` should not have a trailing slash. @@ -17,7 +17,7 @@ validating /openapi.yaml... Error was generated by the no-path-trailing-slash rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/no-path-trailing-slash-off/snapshot.js b/__tests__/lint/no-path-trailing-slash-off/snapshot.js index cef015ada7..2b71595489 100644 --- a/__tests__/lint/no-path-trailing-slash-off/snapshot.js +++ b/__tests__/lint/no-path-trailing-slash-off/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint no-path-trailing-slash-off 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/no-path-trailing-slash-rule/snapshot.js b/__tests__/lint/no-path-trailing-slash-rule/snapshot.js index 6340bfad06..4254fad937 100644 --- a/__tests__/lint/no-path-trailing-slash-rule/snapshot.js +++ b/__tests__/lint/no-path-trailing-slash-rule/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint no-path-trailing-slash-rule 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/no-server-example-rule/snapshot.js b/__tests__/lint/no-server-example-rule/snapshot.js index d6b528ce85..95aebcd590 100644 --- a/__tests__/lint/no-server-example-rule/snapshot.js +++ b/__tests__/lint/no-server-example-rule/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint no-server-example-rule 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/no-server-trailing-slash-error/snapshot.js b/__tests__/lint/no-server-trailing-slash-error/snapshot.js index b0ee2ae3a7..24f6ec04a2 100644 --- a/__tests__/lint/no-server-trailing-slash-error/snapshot.js +++ b/__tests__/lint/no-server-trailing-slash-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint no-server-trailing-slash-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:7:10 at #/servers/0/url Server \`url\` should not have a trailing slash. @@ -17,7 +17,7 @@ Server \`url\` should not have a trailing slash. Error was generated by the no-server-trailing-slash rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/no-server-trailing-slash-rule/snapshot.js b/__tests__/lint/no-server-trailing-slash-rule/snapshot.js index 01fcd029af..c57abe4032 100644 --- a/__tests__/lint/no-server-trailing-slash-rule/snapshot.js +++ b/__tests__/lint/no-server-trailing-slash-rule/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint no-server-trailing-slash-rule 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/no-server-variables-empty-enum-errror/snapshot.js b/__tests__/lint/no-server-variables-empty-enum-errror/snapshot.js index b8cce94623..c274928088 100644 --- a/__tests__/lint/no-server-variables-empty-enum-errror/snapshot.js +++ b/__tests__/lint/no-server-variables-empty-enum-errror/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint no-server-variables-empty-enum-errror 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:5:1 at #/servers Server variable with \`enum\` must be a non-empty array. @@ -31,7 +31,7 @@ Server variable define \`enum\` and \`default\`. \`enum\` must include default v Error was generated by the no-server-variables-empty-enum rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 2 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/no-server-variables-empty-enum/snapshot.js b/__tests__/lint/no-server-variables-empty-enum/snapshot.js index f777fb081c..fd09d602e8 100644 --- a/__tests__/lint/no-server-variables-empty-enum/snapshot.js +++ b/__tests__/lint/no-server-variables-empty-enum/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint no-server-variables-empty-enum 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/no-undefined-server-variable-error-recommended-config/snapshot.js b/__tests__/lint/no-undefined-server-variable-error-recommended-config/snapshot.js index 70caf2fbcc..e681b5c3f1 100644 --- a/__tests__/lint/no-undefined-server-variable-error-recommended-config/snapshot.js +++ b/__tests__/lint/no-undefined-server-variable-error-recommended-config/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint no-undefined-server-variable-error-recommended-config 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:7:5 at #/servers/0/url Expected type \`string\` but got \`null\`. @@ -44,7 +44,7 @@ Operation must have at least one \`4XX\` response. Warning was generated by the operation-4xx-response rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error and 2 warnings. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/no-unresolved-refs-error/snapshot.js b/__tests__/lint/no-unresolved-refs-error/snapshot.js index 62d023d4f0..0bf168b776 100644 --- a/__tests__/lint/no-unresolved-refs-error/snapshot.js +++ b/__tests__/lint/no-unresolved-refs-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint no-unresolved-refs-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:19:17 at #/paths/~1pet~1findByStatus/get/responses/200/content/application~1json/schema Can't resolve $ref @@ -17,7 +17,7 @@ Can't resolve $ref Error was generated by the no-unresolved-refs rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/no-unresolved-refs-rule/snapshot.js b/__tests__/lint/no-unresolved-refs-rule/snapshot.js index 4dd877cb7f..02bc464e06 100644 --- a/__tests__/lint/no-unresolved-refs-rule/snapshot.js +++ b/__tests__/lint/no-unresolved-refs-rule/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint no-unresolved-refs-rule 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/no-unused-components-rule/snapshot.js b/__tests__/lint/no-unused-components-rule/snapshot.js index 7759a68119..1a70e988dd 100644 --- a/__tests__/lint/no-unused-components-rule/snapshot.js +++ b/__tests__/lint/no-unused-components-rule/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint no-unused-components-rule 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/no-unused-components-warning/snapshot.js b/__tests__/lint/no-unused-components-warning/snapshot.js index 369b5de9ba..7c00584624 100644 --- a/__tests__/lint/no-unused-components-warning/snapshot.js +++ b/__tests__/lint/no-unused-components-warning/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint no-unused-components-warning 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:18:5 at #/components/schemas/Category Component: "Category" is never used. @@ -17,7 +17,7 @@ Component: "Category" is never used. Warning was generated by the no-unused-components rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ You have 1 warning. diff --git a/__tests__/lint/null-schema-values/snapshot.js b/__tests__/lint/null-schema-values/snapshot.js index a88dcbfac4..e7f9699857 100644 --- a/__tests__/lint/null-schema-values/snapshot.js +++ b/__tests__/lint/null-schema-values/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint null-schema-values 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:2:1 at #/info Expected type \`Info\` (object) but got \`null\` @@ -31,7 +31,7 @@ referenced from openapi.yaml:12:17 at #/paths/~1test/get/responses/200/content/a Error was generated by the struct rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 2 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/oas2/snapshot.js b/__tests__/lint/oas2/snapshot.js index 74a4d4badc..1cc531901b 100644 --- a/__tests__/lint/oas2/snapshot.js +++ b/__tests__/lint/oas2/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint oas2 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/oas3-no-errors/snapshot.js b/__tests__/lint/oas3-no-errors/snapshot.js index 318b6f99c3..30a793ed54 100644 --- a/__tests__/lint/oas3-no-errors/snapshot.js +++ b/__tests__/lint/oas3-no-errors/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint oas3-no-errors 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/oas3.1-error/snapshot.js b/__tests__/lint/oas3.1-error/snapshot.js index 5c9a575307..3b72d67847 100644 --- a/__tests__/lint/oas3.1-error/snapshot.js +++ b/__tests__/lint/oas3.1-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint oas3.1-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:1:1 at #/ Must contain at least one of the following fields: paths, components, webhooks. @@ -19,7 +19,7 @@ Must contain at least one of the following fields: paths, components, webhooks. Error was generated by the struct rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/oas3.1/snapshot.js b/__tests__/lint/oas3.1/snapshot.js index 4fc3b9e744..cef446976d 100644 --- a/__tests__/lint/oas3.1/snapshot.js +++ b/__tests__/lint/oas3.1/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint oas3.1 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:179:5 at #/components/schemas/Problem Component: "Problem" is never used. @@ -17,7 +17,7 @@ Component: "Problem" is never used. Warning was generated by the no-unused-components rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ You have 1 warning. diff --git a/__tests__/lint/operation-2xx-response-rule/snapshot.js b/__tests__/lint/operation-2xx-response-rule/snapshot.js index a1f9460111..6dfdd4446f 100644 --- a/__tests__/lint/operation-2xx-response-rule/snapshot.js +++ b/__tests__/lint/operation-2xx-response-rule/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint operation-2xx-response-rule 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/operation-2xx-response-warning/snapshot.js b/__tests__/lint/operation-2xx-response-warning/snapshot.js index fd79026d0a..943f799dae 100644 --- a/__tests__/lint/operation-2xx-response-warning/snapshot.js +++ b/__tests__/lint/operation-2xx-response-warning/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint operation-2xx-response-warning 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:11:7 at #/paths/~1ping/get/responses Operation must have at least one \`2XX\` response. @@ -17,7 +17,7 @@ Operation must have at least one \`2XX\` response. Warning was generated by the operation-2xx-response rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ You have 1 warning. diff --git a/__tests__/lint/operation-4xx-problem-details-rfc7807/snapshot.js b/__tests__/lint/operation-4xx-problem-details-rfc7807/snapshot.js index d1e0421e3a..29f1ddd343 100644 --- a/__tests__/lint/operation-4xx-problem-details-rfc7807/snapshot.js +++ b/__tests__/lint/operation-4xx-problem-details-rfc7807/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint operation-4xx-problem-details-rfc7807 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:12:9 at #/paths/~1ping/get/responses/400 Response \`4xx\` must have content-type \`application/problem+json\`. @@ -17,7 +17,7 @@ Response \`4xx\` must have content-type \`application/problem+json\`. Error was generated by the operation-4xx-problem-details-rfc7807 rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/operation-4xx-response-rule/snapshot.js b/__tests__/lint/operation-4xx-response-rule/snapshot.js index 0c0c77f41f..d61794e30f 100644 --- a/__tests__/lint/operation-4xx-response-rule/snapshot.js +++ b/__tests__/lint/operation-4xx-response-rule/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint operation-4xx-response-rule 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/operation-4xx-response-warning/snapshot.js b/__tests__/lint/operation-4xx-response-warning/snapshot.js index b0e67240a3..c182f4e761 100644 --- a/__tests__/lint/operation-4xx-response-warning/snapshot.js +++ b/__tests__/lint/operation-4xx-response-warning/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint operation-4xx-response-warning 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:11:7 at #/paths/~1ping/get/responses Operation must have at least one \`4XX\` response. @@ -17,7 +17,7 @@ Operation must have at least one \`4XX\` response. Warning was generated by the operation-4xx-response rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ You have 1 warning. diff --git a/__tests__/lint/operation-description-rule/snapshot.js b/__tests__/lint/operation-description-rule/snapshot.js index 1fb160f259..27df1e07b5 100644 --- a/__tests__/lint/operation-description-rule/snapshot.js +++ b/__tests__/lint/operation-description-rule/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint operation-description-rule 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/operation-description-warning/snapshot.js b/__tests__/lint/operation-description-warning/snapshot.js index 5f75568161..d5e8d9fb93 100644 --- a/__tests__/lint/operation-description-warning/snapshot.js +++ b/__tests__/lint/operation-description-warning/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint operation-description-warning 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:8:5 at #/paths/~1ping/get/description Operation object should contain \`description\` field. @@ -17,7 +17,7 @@ Operation object should contain \`description\` field. Warning was generated by the operation-description rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ You have 1 warning. diff --git a/__tests__/lint/operation-operationId-in-callback/snapshot.js b/__tests__/lint/operation-operationId-in-callback/snapshot.js index 01d2b630f6..19d46a6db1 100644 --- a/__tests__/lint/operation-operationId-in-callback/snapshot.js +++ b/__tests__/lint/operation-operationId-in-callback/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint operation-operationId-in-callback 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/operation-operationId-unique-error/snapshot.js b/__tests__/lint/operation-operationId-unique-error/snapshot.js index b79b7c0bfa..4029638770 100644 --- a/__tests__/lint/operation-operationId-unique-error/snapshot.js +++ b/__tests__/lint/operation-operationId-unique-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint operation-operationId-unique-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:16:7 at #/paths/~1pong/get/getUserById Every operation must have a unique \`operationId\`. @@ -21,7 +21,7 @@ Every operation must have a unique \`operationId\`. Error was generated by the operation-operationId-unique rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/operation-operationId-unique-rule/snapshot.js b/__tests__/lint/operation-operationId-unique-rule/snapshot.js index 18331a9954..f0e15911cf 100644 --- a/__tests__/lint/operation-operationId-unique-rule/snapshot.js +++ b/__tests__/lint/operation-operationId-unique-rule/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint operation-operationId-unique-rule 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/operation-parameters-unique-rule/snapshot.js b/__tests__/lint/operation-parameters-unique-rule/snapshot.js index 712faf9260..99cd542d12 100644 --- a/__tests__/lint/operation-parameters-unique-rule/snapshot.js +++ b/__tests__/lint/operation-parameters-unique-rule/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint operation-parameters-unique-rule 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/operation-security-defined-rule/snapshot.js b/__tests__/lint/operation-security-defined-rule/snapshot.js index 56b0098a49..d6dcf1f470 100644 --- a/__tests__/lint/operation-security-defined-rule/snapshot.js +++ b/__tests__/lint/operation-security-defined-rule/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint operation-security-defined-rule 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/operation-security-defined-warning/snapshot.js b/__tests__/lint/operation-security-defined-warning/snapshot.js index 2adf960cfb..c5d2f68700 100644 --- a/__tests__/lint/operation-security-defined-warning/snapshot.js +++ b/__tests__/lint/operation-security-defined-warning/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint operation-security-defined-warning 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:17:5 at #/security/0/app_id There is no \`app_id\` security scheme defined. @@ -16,7 +16,7 @@ There is no \`app_id\` security scheme defined. Warning was generated by the security-defined rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ You have 1 warning. diff --git a/__tests__/lint/operation-security-scheme-oas2-error/snapshot.js b/__tests__/lint/operation-security-scheme-oas2-error/snapshot.js index c12c6a5814..4c7ba8ae51 100644 --- a/__tests__/lint/operation-security-scheme-oas2-error/snapshot.js +++ b/__tests__/lint/operation-security-scheme-oas2-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint operation-security-scheme-oas2-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:14:5 at #/securityDefinitions/basicAuth/name The field \`name\` is not allowed here. @@ -103,7 +103,7 @@ The field \`authorizationUrl\` is not allowed here. Error was generated by the struct rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 7 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/operation-security-scheme-oas3-error/snapshot.js b/__tests__/lint/operation-security-scheme-oas3-error/snapshot.js index bde1116bac..09b3fd0031 100644 --- a/__tests__/lint/operation-security-scheme-oas3-error/snapshot.js +++ b/__tests__/lint/operation-security-scheme-oas3-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint operation-security-scheme-oas3-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:35:11 at #/components/securitySchemes/petstore_auth/flows/implicit/testProp Property \`testProp\` is not expected here. @@ -114,7 +114,7 @@ Every operation should have security defined on it or on the root level. Error was generated by the security-defined rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 8 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/operation-tag-defined-rule/snapshot.js b/__tests__/lint/operation-tag-defined-rule/snapshot.js index 79fac801a2..29a45cb9df 100644 --- a/__tests__/lint/operation-tag-defined-rule/snapshot.js +++ b/__tests__/lint/operation-tag-defined-rule/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint operation-tag-defined-rule 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/parameter-description-rule/snapshot.js b/__tests__/lint/parameter-description-rule/snapshot.js index d8c83a0002..042f0c961f 100644 --- a/__tests__/lint/parameter-description-rule/snapshot.js +++ b/__tests__/lint/parameter-description-rule/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint parameter-description-rule 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/parameter-description-warning/snapshot.js b/__tests__/lint/parameter-description-warning/snapshot.js index c99dae4503..70d63be0a5 100644 --- a/__tests__/lint/parameter-description-warning/snapshot.js +++ b/__tests__/lint/parameter-description-warning/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint parameter-description-warning 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:28:9 at #/paths/~1ping/parameters/0 Parameter object description must be present. @@ -69,7 +69,7 @@ Parameter object description must be present. Warning was generated by the parameter-description rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ You have 4 warnings. diff --git a/__tests__/lint/path-declaration-must-exist-error/snapshot.js b/__tests__/lint/path-declaration-must-exist-error/snapshot.js index 64df22d5c8..82454bd596 100644 --- a/__tests__/lint/path-declaration-must-exist-error/snapshot.js +++ b/__tests__/lint/path-declaration-must-exist-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint path-declaration-must-exist-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:14:3 at #/paths/~1api~1user~1{}~1profie Path parameter declarations must be non-empty. \`{}\` is invalid. @@ -17,7 +17,7 @@ Path parameter declarations must be non-empty. \`{}\` is invalid. Error was generated by the path-declaration-must-exist rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/path-declaration-must-exist-rule/snapshot.js b/__tests__/lint/path-declaration-must-exist-rule/snapshot.js index 21fe59babc..dd523dad39 100644 --- a/__tests__/lint/path-declaration-must-exist-rule/snapshot.js +++ b/__tests__/lint/path-declaration-must-exist-rule/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint path-declaration-must-exist-rule 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/path-excludes-patterns/snapshot.js b/__tests__/lint/path-excludes-patterns/snapshot.js index 01d4782c5a..a5c76b1e48 100644 --- a/__tests__/lint/path-excludes-patterns/snapshot.js +++ b/__tests__/lint/path-excludes-patterns/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint path-excludes-patterns 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:25:3 at #/paths/~1getUsers path \`/getUsers\` should not match regex pattern: \`^\\/[a-z]\` @@ -17,7 +17,7 @@ path \`/getUsers\` should not match regex pattern: \`^\\/[a-z]\` Error was generated by the path-excludes-patterns rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/path-not-include-query-error/snapshot.js b/__tests__/lint/path-not-include-query-error/snapshot.js index 18ceb8671b..b522ab5e01 100644 --- a/__tests__/lint/path-not-include-query-error/snapshot.js +++ b/__tests__/lint/path-not-include-query-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint path-not-include-query-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:14:3 at #/paths/~1ping~1items?id=### Don't put query string items in the path, they belong in parameters with \`in: query\`. @@ -17,7 +17,7 @@ Don't put query string items in the path, they belong in parameters with \`in: q Error was generated by the path-not-include-query rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/path-not-include-query-rule/snapshot.js b/__tests__/lint/path-not-include-query-rule/snapshot.js index c4fa915ec8..f62682d912 100644 --- a/__tests__/lint/path-not-include-query-rule/snapshot.js +++ b/__tests__/lint/path-not-include-query-rule/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint path-not-include-query-rule 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/path-parameters-defined-error/snapshot.js b/__tests__/lint/path-parameters-defined-error/snapshot.js index a7ce75740a..9e45925452 100644 --- a/__tests__/lint/path-parameters-defined-error/snapshot.js +++ b/__tests__/lint/path-parameters-defined-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint path-parameters-defined-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:11:17 at #/paths/~1user~1{id}/get/parameters/0/name Path parameter \`test\` is not used in the path \`/user/{id}\`. @@ -31,7 +31,7 @@ The operation does not define the path parameter \`{id}\` expected by path \`/us Error was generated by the path-parameters-defined rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 2 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/path-parameters-defined-rule/snapshot.js b/__tests__/lint/path-parameters-defined-rule/snapshot.js index de220346a4..8e11ca7baa 100644 --- a/__tests__/lint/path-parameters-defined-rule/snapshot.js +++ b/__tests__/lint/path-parameters-defined-rule/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint path-parameters-defined-rule 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/path-segment-plural-error/snapshot.js b/__tests__/lint/path-segment-plural-error/snapshot.js index ed16be9c49..84014d6c1c 100644 --- a/__tests__/lint/path-segment-plural-error/snapshot.js +++ b/__tests__/lint/path-segment-plural-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint path-segment-plural-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:10:3 at #/paths/~1pet path segment \`pet\` should be plural. @@ -31,7 +31,7 @@ path segment \`v1\` should be plural. Error was generated by the path-segment-plural rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 2 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/path-segment-plural/snapshot.js b/__tests__/lint/path-segment-plural/snapshot.js index e855fae0a1..a188dcfa7f 100644 --- a/__tests__/lint/path-segment-plural/snapshot.js +++ b/__tests__/lint/path-segment-plural/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint path-segment-plural 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/request-response-mime-type-oas2-error/snapshot.js b/__tests__/lint/request-response-mime-type-oas2-error/snapshot.js index 09e1937ff5..9f34b5ae47 100644 --- a/__tests__/lint/request-response-mime-type-oas2-error/snapshot.js +++ b/__tests__/lint/request-response-mime-type-oas2-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint request-response-mime-type-oas2-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:1:1 at #/1 Mime type "multipart/form-data" is not allowed @@ -63,7 +63,7 @@ Mime type "application/xml" is not allowed Error was generated by the response-mime-type rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 4 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/request-response-mime-type-oas3-error/snapshot.js b/__tests__/lint/request-response-mime-type-oas3-error/snapshot.js index 8a295e33dd..19e40c0729 100644 --- a/__tests__/lint/request-response-mime-type-oas3-error/snapshot.js +++ b/__tests__/lint/request-response-mime-type-oas3-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint request-response-mime-type-oas3-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:25:11 at #/paths/~1store~1subscribe/post/requestBody/content/application~1xml Mime type "application/xml" is not allowed @@ -73,7 +73,7 @@ Mime type "application/xml" is not allowed Error was generated by the request-mime-type rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 5 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/request-response-mime-type-oas3.1-error/snapshot.js b/__tests__/lint/request-response-mime-type-oas3.1-error/snapshot.js index 5a77d3e024..1f4aa1a7c8 100644 --- a/__tests__/lint/request-response-mime-type-oas3.1-error/snapshot.js +++ b/__tests__/lint/request-response-mime-type-oas3.1-error/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint request-response-mime-type-oas3.1-error 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:25:11 at #/paths/~1store~1subscribe/post/requestBody/content/application~1xml Mime type "application/xml" is not allowed @@ -45,7 +45,7 @@ Mime type "application/xml" is not allowed Error was generated by the request-mime-type rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 3 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/required-string-property-missing-min-length/snapshot.js b/__tests__/lint/required-string-property-missing-min-length/snapshot.js index d54211b277..9c2d6a9696 100644 --- a/__tests__/lint/required-string-property-missing-min-length/snapshot.js +++ b/__tests__/lint/required-string-property-missing-min-length/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint required-string-property-missing-min-length 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:37:19 at #/paths/~1pet~1findByStatus/get/responses/200/content/application~1json/schema/properties/a Property minLength is required. @@ -31,7 +31,7 @@ Property minLength is required. Error was generated by the required-string-property-missing-min-length rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 2 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/skip-rules/snapshot.js b/__tests__/lint/skip-rules/snapshot.js index a9da179859..755eab5a72 100644 --- a/__tests__/lint/skip-rules/snapshot.js +++ b/__tests__/lint/skip-rules/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint skip-rules 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:10:20 at #/paths/~1users/get/operationId rule/operationId-casing failed because the Operation operationId didn't meet the assertions: "camelCase" should use PascalCase @@ -31,7 +31,7 @@ Operation must have at least one \`4XX\` response. Error was generated by the operation-4xx-response rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 2 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. @@ -41,8 +41,8 @@ run \`redocly lint --generate-ignore-file\` to add all problems to the ignore fi exports[`E2E lint skip-rules 2`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/spec-error-if-minimum-not-correct/snapshot.js b/__tests__/lint/spec-error-if-minimum-not-correct/snapshot.js index aa82b64769..386f7cfe5e 100644 --- a/__tests__/lint/spec-error-if-minimum-not-correct/snapshot.js +++ b/__tests__/lint/spec-error-if-minimum-not-correct/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint spec-error-if-minimum-not-correct 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:29:23 at #/paths/~1pet~1findByStatus/get/parameters/0/schema/minItems The value of the minItems field must be greater than or equal to 0 @@ -115,7 +115,7 @@ Every operation should have security defined on it or on the root level. Error was generated by the security-defined rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 8 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/spec-from/snapshot.js b/__tests__/lint/spec-from/snapshot.js index c180b35796..361072ffdb 100644 --- a/__tests__/lint/spec-from/snapshot.js +++ b/__tests__/lint/spec-from/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint spec-from 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:1:1 at #/ The field \`paths\` must be present on this level. @@ -51,7 +51,7 @@ referenced from openapi.yaml:13:11 at #/components/schemas/TestSchema/allOf/0 Error was generated by the struct rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 3 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/spec-json-schema-validation-dependentRequired/snapshot.js b/__tests__/lint/spec-json-schema-validation-dependentRequired/snapshot.js index 508c6ce9de..ee1000db48 100644 --- a/__tests__/lint/spec-json-schema-validation-dependentRequired/snapshot.js +++ b/__tests__/lint/spec-json-schema-validation-dependentRequired/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint spec-json-schema-validation-dependentRequired 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:22:26 at #/paths/~1thing/get/responses/200/content/application~1json/examples/dependentRequired_failing/value Example value must conform to the schema: must have property age when property name is present. @@ -19,7 +19,7 @@ referenced from openapi.yaml:14:15 at #/paths/~1thing/get/responses/200/content/ Error was generated by the no-invalid-media-type-examples rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/spec-strict-refs/snapshot.js b/__tests__/lint/spec-strict-refs/snapshot.js index d30b9593ca..3a436dcdb3 100644 --- a/__tests__/lint/spec-strict-refs/snapshot.js +++ b/__tests__/lint/spec-strict-refs/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint spec-strict-refs 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:6:3 at #/info/$ref Field $ref is not expected here. @@ -31,7 +31,7 @@ Field $ref is not expected here. Error was generated by the spec-strict-refs rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 2 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/tags-alphabetical-rule/snapshot.js b/__tests__/lint/tags-alphabetical-rule/snapshot.js index 5ab6c4cdbb..b29501f511 100644 --- a/__tests__/lint/tags-alphabetical-rule/snapshot.js +++ b/__tests__/lint/tags-alphabetical-rule/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint tags-alphabetical-rule 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/tags-alphabetical-warning/snapshot.js b/__tests__/lint/tags-alphabetical-warning/snapshot.js index 7974161f37..5f487a93df 100644 --- a/__tests__/lint/tags-alphabetical-warning/snapshot.js +++ b/__tests__/lint/tags-alphabetical-warning/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint tags-alphabetical-warning 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:34:5 at #/tags/0 The \`tags\` array should be in alphabetical order. @@ -23,7 +23,7 @@ The \`tags\` array should be in alphabetical order. Warning was generated by the tags-alphabetical rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ You have 1 warning. diff --git a/__tests__/lint/test-unused-component/snapshot.js b/__tests__/lint/test-unused-component/snapshot.js index 731cddd61f..532196bd23 100644 --- a/__tests__/lint/test-unused-component/snapshot.js +++ b/__tests__/lint/test-unused-component/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint test-unused-component 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/lint/turn-on-all-rules/snapshot.js b/__tests__/lint/turn-on-all-rules/snapshot.js index ff7e370c90..76f7882892 100644 --- a/__tests__/lint/turn-on-all-rules/snapshot.js +++ b/__tests__/lint/turn-on-all-rules/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint turn-on-all-rules 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:1:1 at #/openapi Servers must be present. @@ -195,7 +195,7 @@ path segment \`ping\` should be plural. Error was generated by the path-segment-plural rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 14 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/lint/with-ignore-file/snapshot.js b/__tests__/lint/with-ignore-file/snapshot.js index 5d46bda70e..a5445b18f2 100644 --- a/__tests__/lint/with-ignore-file/snapshot.js +++ b/__tests__/lint/with-ignore-file/snapshot.js @@ -2,8 +2,8 @@ exports[`E2E lint with-ignore-file 1`] = ` -validating /openapi.yaml... -/openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ 2 problems are explicitly ignored. diff --git a/__tests__/lint/wrong-required-type/snapshot.js b/__tests__/lint/wrong-required-type/snapshot.js index 3b94859405..bca42743bc 100644 --- a/__tests__/lint/wrong-required-type/snapshot.js +++ b/__tests__/lint/wrong-required-type/snapshot.js @@ -2,7 +2,7 @@ exports[`E2E lint wrong-required-type 1`] = ` -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:12:21 at #/components/schemas/BugDemo/properties/id/required Expected type \`array\` but got \`boolean\`. @@ -16,7 +16,7 @@ Expected type \`array\` but got \`boolean\`. Error was generated by the struct rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 1 error. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/miscellaneous/apply-per-api-decorators/openapi.yaml b/__tests__/miscellaneous/apply-per-api-decorators/nested/openapi/main.yaml similarity index 100% rename from __tests__/miscellaneous/apply-per-api-decorators/openapi.yaml rename to __tests__/miscellaneous/apply-per-api-decorators/nested/openapi/main.yaml diff --git a/__tests__/miscellaneous/apply-per-api-decorators/plugins/decorators/version.js b/__tests__/miscellaneous/apply-per-api-decorators/nested/plugins/decorators/version.js similarity index 66% rename from __tests__/miscellaneous/apply-per-api-decorators/plugins/decorators/version.js rename to __tests__/miscellaneous/apply-per-api-decorators/nested/plugins/decorators/version.js index 0e685bd21d..dfafc8c12c 100644 --- a/__tests__/miscellaneous/apply-per-api-decorators/plugins/decorators/version.js +++ b/__tests__/miscellaneous/apply-per-api-decorators/nested/plugins/decorators/version.js @@ -1,6 +1,6 @@ -module.exports = sparkle; +module.exports = addVersion; -function sparkle() { +function addVersion() { return { Info: { leave(target) { diff --git a/__tests__/miscellaneous/apply-per-api-decorators/plugins/test.js b/__tests__/miscellaneous/apply-per-api-decorators/nested/plugins/test.js similarity index 100% rename from __tests__/miscellaneous/apply-per-api-decorators/plugins/test.js rename to __tests__/miscellaneous/apply-per-api-decorators/nested/plugins/test.js diff --git a/__tests__/miscellaneous/apply-per-api-decorators/redocly.yaml b/__tests__/miscellaneous/apply-per-api-decorators/nested/redocly.yaml similarity index 81% rename from __tests__/miscellaneous/apply-per-api-decorators/redocly.yaml rename to __tests__/miscellaneous/apply-per-api-decorators/nested/redocly.yaml index bdb0ad8fc9..0e86ab03d1 100644 --- a/__tests__/miscellaneous/apply-per-api-decorators/redocly.yaml +++ b/__tests__/miscellaneous/apply-per-api-decorators/nested/redocly.yaml @@ -1,6 +1,6 @@ apis: test@v1: - root: openapi.yaml + root: openapi/main.yaml decorators: test/version: on remove-unused-components: on diff --git a/__tests__/miscellaneous/apply-per-api-decorators/snapshot.js b/__tests__/miscellaneous/apply-per-api-decorators/snapshot.js index 70a9970d14..8394a61898 100644 --- a/__tests__/miscellaneous/apply-per-api-decorators/snapshot.js +++ b/__tests__/miscellaneous/apply-per-api-decorators/snapshot.js @@ -11,8 +11,8 @@ components: Unused: type: string -bundling ./__tests__/miscellaneous/apply-per-api-decorators/openapi.yaml... -๐Ÿ“ฆ Created a bundle for ./__tests__/miscellaneous/apply-per-api-decorators/openapi.yaml at stdout ms. +bundling nested/openapi/main.yaml... +๐Ÿ“ฆ Created a bundle for nested/openapi/main.yaml at stdout ms. `; @@ -27,7 +27,7 @@ components: Unused: type: string -bundling ./__tests__/miscellaneous/apply-per-api-decorators/openapi.yaml... -๐Ÿ“ฆ Created a bundle for ./__tests__/miscellaneous/apply-per-api-decorators/openapi.yaml at stdout ms. +bundling nested/openapi/main.yaml... +๐Ÿ“ฆ Created a bundle for nested/openapi/main.yaml at stdout ms. `; diff --git a/__tests__/split/refs-in-json/snapshot.js b/__tests__/split/refs-in-json/snapshot.js index e5d1c6a7ec..79e2a39478 100644 --- a/__tests__/split/refs-in-json/snapshot.js +++ b/__tests__/split/refs-in-json/snapshot.js @@ -4,8 +4,8 @@ exports[`E2E split openapi json file refs validation 1`] = ` No configurations were provided -- using built in recommended configuration by default. -validating /output/openapi.json... -/output/openapi.json: validated in ms +validating output/openapi.json... +output/openapi.json: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/webpack-bundle/bundle-workflows/result-snapshot.js b/__tests__/webpack-bundle/bundle-workflows/result-snapshot.js index ade6a84b26..6364501919 100644 --- a/__tests__/webpack-bundle/bundle-workflows/result-snapshot.js +++ b/__tests__/webpack-bundle/bundle-workflows/result-snapshot.js @@ -2,7 +2,7 @@ exports[`webpack-bundle test bundle-workflows 1`] = ` -bundling ./openapi.yaml... -๐Ÿ“ฆ Created a bundle for ./openapi.yaml at bundle.yaml ms. +bundling openapi.yaml... +๐Ÿ“ฆ Created a bundle for openapi.yaml at bundle.yaml ms. `; diff --git a/__tests__/webpack-bundle/bundle/snapshot.js b/__tests__/webpack-bundle/bundle/snapshot.js index 128ea35340..f4ece76569 100644 --- a/__tests__/webpack-bundle/bundle/snapshot.js +++ b/__tests__/webpack-bundle/bundle/snapshot.js @@ -2,7 +2,7 @@ exports[`webpack-bundle test bundle check 1`] = ` -bundling ./openapi.yaml... -๐Ÿ“ฆ Created a bundle for ./openapi.yaml at /tmp/null.yaml ms. +bundling openapi.yaml... +๐Ÿ“ฆ Created a bundle for openapi.yaml at /tmp/null.yaml ms. `; diff --git a/__tests__/webpack-bundle/lint-workflows-fail/snapshot.js b/__tests__/webpack-bundle/lint-workflows-fail/snapshot.js index 92e2c4db51..c679319e33 100644 --- a/__tests__/webpack-bundle/lint-workflows-fail/snapshot.js +++ b/__tests__/webpack-bundle/lint-workflows-fail/snapshot.js @@ -41,8 +41,8 @@ exports[`webpack-bundle test lint-workflows-fail 1`] = ` } ] } -validating ./openapi.yaml... -./openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms โŒ Validation failed with 1 error and 1 warning. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/__tests__/webpack-bundle/lint-workflows/snapshot.js b/__tests__/webpack-bundle/lint-workflows/snapshot.js index 3ab9474f95..293b03c596 100644 --- a/__tests__/webpack-bundle/lint-workflows/snapshot.js +++ b/__tests__/webpack-bundle/lint-workflows/snapshot.js @@ -10,8 +10,8 @@ exports[`webpack-bundle test lint-workflows 1`] = ` "version": "", "problems": [] } -validating ./openapi.yaml... -./openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/webpack-bundle/lint/snapshot.js b/__tests__/webpack-bundle/lint/snapshot.js index aaded29210..c89f2b01ba 100644 --- a/__tests__/webpack-bundle/lint/snapshot.js +++ b/__tests__/webpack-bundle/lint/snapshot.js @@ -2,8 +2,8 @@ exports[`webpack-bundle test lint check 1`] = ` -validating ./openapi.yaml... -./openapi.yaml: validated in ms +validating openapi.yaml... +openapi.yaml: validated in ms Woohoo! Your API description is valid. ๐ŸŽ‰ diff --git a/__tests__/zero-config/default-recommended-fallback/snapshot.js b/__tests__/zero-config/default-recommended-fallback/snapshot.js index cf8e9fef36..7ad4a6e1fa 100644 --- a/__tests__/zero-config/default-recommended-fallback/snapshot.js +++ b/__tests__/zero-config/default-recommended-fallback/snapshot.js @@ -4,7 +4,7 @@ exports[`E2E zero-config default-recommended-fallback 1`] = ` No configurations were provided -- using built in recommended configuration by default. -validating /openapi.yaml... +validating openapi.yaml... [1] openapi.yaml:35:11 at #/components/securitySchemes/petstore_auth/flows/implicit/testProp Property \`testProp\` is not expected here. @@ -116,7 +116,7 @@ Every operation should have security defined on it or on the root level. Error was generated by the security-defined rule. -/openapi.yaml: validated in ms +openapi.yaml: validated in ms โŒ Validation failed with 8 errors. run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. diff --git a/packages/cli/src/commands/bundle.ts b/packages/cli/src/commands/bundle.ts index f11b7da25d..2432429acb 100644 --- a/packages/cli/src/commands/bundle.ts +++ b/packages/cli/src/commands/bundle.ts @@ -1,3 +1,4 @@ +import { relative } from 'path'; import { performance } from 'perf_hooks'; import { blue, gray, green, yellow } from 'colorette'; import { writeFileSync } from 'fs'; @@ -54,7 +55,7 @@ export async function handleBundle({ styleguide.skipPreprocessors(argv['skip-preprocessor']); styleguide.skipDecorators(argv['skip-decorator']); - process.stderr.write(gray(`bundling ${path}...\n`)); + process.stderr.write(gray(`bundling ${relative(process.cwd(), path)}...\n`)); const { bundle: result, @@ -117,22 +118,22 @@ export async function handleBundle({ if (fileTotals.errors > 0) { if (argv.force) { process.stderr.write( - `โ“ Created a bundle for ${blue(path)} at ${blue( + `โ“ Created a bundle for ${blue(relative(process.cwd(), path))} at ${blue( outputFile || 'stdout' )} with errors ${green(elapsed)}.\n${yellow('Errors ignored because of --force')}.\n` ); } else { process.stderr.write( `โŒ Errors encountered while bundling ${blue( - path + relative(process.cwd(), path) )}: bundle not created (use --force to ignore errors).\n` ); } } else { process.stderr.write( - `๐Ÿ“ฆ Created a bundle for ${blue(path)} at ${blue(outputFile || 'stdout')} ${green( - elapsed - )}.\n` + `๐Ÿ“ฆ Created a bundle for ${blue(relative(process.cwd(), path))} at ${blue( + outputFile || 'stdout' + )} ${green(elapsed)}.\n` ); } diff --git a/packages/cli/src/commands/lint.ts b/packages/cli/src/commands/lint.ts index c173e14ada..fa33428a17 100644 --- a/packages/cli/src/commands/lint.ts +++ b/packages/cli/src/commands/lint.ts @@ -1,3 +1,4 @@ +import { relative } from 'path'; import { blue, gray } from 'colorette'; import { performance } from 'perf_hooks'; import { @@ -74,7 +75,7 @@ export async function handleLint({ )} configuration by default.\n\n` ); } - process.stderr.write(gray(`validating ${path.replace(process.cwd(), '')}...\n`)); + process.stderr.write(gray(`validating ${relative(process.cwd(), path)}...\n`)); const results = await lint({ ref: path, config: resolvedConfig, @@ -101,7 +102,7 @@ export async function handleLint({ } const elapsed = getExecutionTime(startedAt); - process.stderr.write(gray(`${path.replace(process.cwd(), '')}: validated in ${elapsed}\n\n`)); + process.stderr.write(gray(`${relative(process.cwd(), path)}: validated in ${elapsed}\n\n`)); } catch (e) { handleError(e, path); } diff --git a/packages/cli/src/utils/miscellaneous.ts b/packages/cli/src/utils/miscellaneous.ts index fd06d16cf3..50ea19f0b2 100644 --- a/packages/cli/src/utils/miscellaneous.ts +++ b/packages/cli/src/utils/miscellaneous.ts @@ -92,7 +92,9 @@ function getAliasOrPath(config: ConfigApis, aliasOrPath: string): Entrypoint { const aliasApi = config.apis[aliasOrPath]; return aliasApi ? { - path: resolve(getConfigDirectory(config), aliasApi.root), + path: isAbsolute(aliasApi.root) + ? aliasApi.root + : resolve(getConfigDirectory(config), aliasApi.root), alias: aliasOrPath, output: aliasApi.output && resolve(getConfigDirectory(config), aliasApi.output), }