From 53ae0a446ffa0fe6a2e435249913ac3266f76bcc Mon Sep 17 00:00:00 2001 From: sacha-c Date: Sat, 8 Nov 2025 21:37:44 +0100 Subject: [PATCH] fix(tests): updated redocly openapi schema location Redocly refactored their tests folder structure in https://github.com/Redocly/redocly-cli/commit/cf26d6038e7c75af3335164f4797133393ac84d3 And fixed a typo in their schemas in https://github.com/Redocly/redocly-cli/commit/13e753a4ca008293dab212ad3b70109166bf93c5 --- packages/openapi-typescript/examples/simple-example.ts | 2 +- packages/openapi-typescript/examples/simple-example.yaml | 2 +- .../test/fixtures/redocly-flag/openapi/a.yaml | 2 +- .../test/fixtures/redocly-flag/openapi/b.yaml | 2 +- .../test/fixtures/redocly-flag/openapi/c.yaml | 2 +- .../test/fixtures/redocly/openapi/a.yaml | 2 +- .../test/fixtures/redocly/openapi/b.yaml | 2 +- .../test/fixtures/redocly/openapi/c.yaml | 2 +- packages/openapi-typescript/test/node-api.test.ts | 7 +++++-- 9 files changed, 13 insertions(+), 10 deletions(-) diff --git a/packages/openapi-typescript/examples/simple-example.ts b/packages/openapi-typescript/examples/simple-example.ts index 88f9c2041..e98bfea5f 100644 --- a/packages/openapi-typescript/examples/simple-example.ts +++ b/packages/openapi-typescript/examples/simple-example.ts @@ -112,7 +112,7 @@ export interface paths { path?: never; cookie?: never; }; - /** Checks if unevaluetedProperties work */ + /** Checks if unevaluatedProperties work */ get: operations["getUnevaluatedProperties"]; put?: never; post?: never; diff --git a/packages/openapi-typescript/examples/simple-example.yaml b/packages/openapi-typescript/examples/simple-example.yaml index f6323a406..b5d309a88 100644 --- a/packages/openapi-typescript/examples/simple-example.yaml +++ b/packages/openapi-typescript/examples/simple-example.yaml @@ -109,7 +109,7 @@ paths: /unevaluated-properties: get: operationId: getUnevaluatedProperties - summary: Checks if unevaluetedProperties work + summary: Checks if unevaluatedProperties work responses: 200: description: 'OK' diff --git a/packages/openapi-typescript/test/fixtures/redocly-flag/openapi/a.yaml b/packages/openapi-typescript/test/fixtures/redocly-flag/openapi/a.yaml index f6323a406..b5d309a88 100644 --- a/packages/openapi-typescript/test/fixtures/redocly-flag/openapi/a.yaml +++ b/packages/openapi-typescript/test/fixtures/redocly-flag/openapi/a.yaml @@ -109,7 +109,7 @@ paths: /unevaluated-properties: get: operationId: getUnevaluatedProperties - summary: Checks if unevaluetedProperties work + summary: Checks if unevaluatedProperties work responses: 200: description: 'OK' diff --git a/packages/openapi-typescript/test/fixtures/redocly-flag/openapi/b.yaml b/packages/openapi-typescript/test/fixtures/redocly-flag/openapi/b.yaml index f6323a406..b5d309a88 100644 --- a/packages/openapi-typescript/test/fixtures/redocly-flag/openapi/b.yaml +++ b/packages/openapi-typescript/test/fixtures/redocly-flag/openapi/b.yaml @@ -109,7 +109,7 @@ paths: /unevaluated-properties: get: operationId: getUnevaluatedProperties - summary: Checks if unevaluetedProperties work + summary: Checks if unevaluatedProperties work responses: 200: description: 'OK' diff --git a/packages/openapi-typescript/test/fixtures/redocly-flag/openapi/c.yaml b/packages/openapi-typescript/test/fixtures/redocly-flag/openapi/c.yaml index f6323a406..b5d309a88 100644 --- a/packages/openapi-typescript/test/fixtures/redocly-flag/openapi/c.yaml +++ b/packages/openapi-typescript/test/fixtures/redocly-flag/openapi/c.yaml @@ -109,7 +109,7 @@ paths: /unevaluated-properties: get: operationId: getUnevaluatedProperties - summary: Checks if unevaluetedProperties work + summary: Checks if unevaluatedProperties work responses: 200: description: 'OK' diff --git a/packages/openapi-typescript/test/fixtures/redocly/openapi/a.yaml b/packages/openapi-typescript/test/fixtures/redocly/openapi/a.yaml index f6323a406..b5d309a88 100644 --- a/packages/openapi-typescript/test/fixtures/redocly/openapi/a.yaml +++ b/packages/openapi-typescript/test/fixtures/redocly/openapi/a.yaml @@ -109,7 +109,7 @@ paths: /unevaluated-properties: get: operationId: getUnevaluatedProperties - summary: Checks if unevaluetedProperties work + summary: Checks if unevaluatedProperties work responses: 200: description: 'OK' diff --git a/packages/openapi-typescript/test/fixtures/redocly/openapi/b.yaml b/packages/openapi-typescript/test/fixtures/redocly/openapi/b.yaml index f6323a406..b5d309a88 100644 --- a/packages/openapi-typescript/test/fixtures/redocly/openapi/b.yaml +++ b/packages/openapi-typescript/test/fixtures/redocly/openapi/b.yaml @@ -109,7 +109,7 @@ paths: /unevaluated-properties: get: operationId: getUnevaluatedProperties - summary: Checks if unevaluetedProperties work + summary: Checks if unevaluatedProperties work responses: 200: description: 'OK' diff --git a/packages/openapi-typescript/test/fixtures/redocly/openapi/c.yaml b/packages/openapi-typescript/test/fixtures/redocly/openapi/c.yaml index f6323a406..b5d309a88 100644 --- a/packages/openapi-typescript/test/fixtures/redocly/openapi/c.yaml +++ b/packages/openapi-typescript/test/fixtures/redocly/openapi/c.yaml @@ -109,7 +109,7 @@ paths: /unevaluated-properties: get: operationId: getUnevaluatedProperties - summary: Checks if unevaluetedProperties work + summary: Checks if unevaluatedProperties work responses: 200: description: 'OK' diff --git a/packages/openapi-typescript/test/node-api.test.ts b/packages/openapi-typescript/test/node-api.test.ts index 51390097e..0edb3fbb8 100644 --- a/packages/openapi-typescript/test/node-api.test.ts +++ b/packages/openapi-typescript/test/node-api.test.ts @@ -58,7 +58,8 @@ export type operations = Record;`, [ "input > string > URL", { - given: "https://raw.githubusercontent.com/Redocly/redocly-cli/main/__tests__/lint/oas3.1/openapi.yaml", + given: + "https://raw.githubusercontent.com/Redocly/redocly-cli/13e753a4ca008293dab212ad3b70109166bf93c5/__tests__/lint/oas3.1/openapi.yaml", want: new URL("simple-example.ts", EXAMPLES_DIR), // options: DEFAULT_OPTIONS, }, @@ -66,7 +67,9 @@ export type operations = Record;`, [ "input > URL > remote", { - given: new URL("https://raw.githubusercontent.com/Redocly/redocly-cli/main/__tests__/lint/oas3.1/openapi.yaml"), + given: new URL( + "https://raw.githubusercontent.com/Redocly/redocly-cli/13e753a4ca008293dab212ad3b70109166bf93c5/__tests__/lint/oas3.1/openapi.yaml", + ), want: new URL("simple-example.ts", EXAMPLES_DIR), // options: DEFAULT_OPTIONS, },