Skip to content

Conversation

@sacha-c
Copy link

@sacha-c sacha-c commented Nov 8, 2025

Changes

Fixes the location of the redocly openapi schema used in tests.

Redocly recently refactored their test folder structure in chore: refactor tests and the openapi schema now lives here
I changed the url used in the tests to refer to the specific commit of the file, so these kind of test failures will not happen again even if they do further folder structure refactors.

Additionally they fixed some typos in this commit, which led me to fix a few test files which depended on the typo

In general I think it would be better to avoid depending on an external resource in tests (thus not using a schema in Redocly but rather one defined in this very repository)
The problem is that somehow setting up schema in this repository which could be used equally in local tests & in github actions seemed a little out-of-scope for this fix, but perhaps this could be an improvement to think of for the future, although hopefully Redocly doesn't refactor their test suite very frequently 😉

How to Review

Checking that tests now pass (as opposed to PRs made in the last ~week)

Checklist

  • Unit tests updated
  • docs/ updated (if necessary)
  • pnpm run update:examples run (only applicable for openapi-typescript)

@sacha-c sacha-c requested a review from a team as a code owner November 8, 2025 20:56
@sacha-c sacha-c requested a review from kerwanp November 8, 2025 20:56
@netlify
Copy link

netlify bot commented Nov 8, 2025

👷 Deploy request for openapi-ts pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 53ae0a4

@changeset-bot
Copy link

changeset-bot bot commented Nov 8, 2025

⚠️ No Changeset found

Latest commit: 53ae0a4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@sacha-c sacha-c force-pushed the fix-redocly-test-location branch from 7c6a67e to 7630111 Compare November 8, 2025 20:57
Redocly refactored their tests folder structure in
Redocly/redocly-cli@cf26d60
And fixed a typo in their schemas in
Redocly/redocly-cli@13e753a
@sacha-c sacha-c force-pushed the fix-redocly-test-location branch from 7630111 to 53ae0a4 Compare November 8, 2025 21:06
@sacha-c sacha-c changed the title Fix redocly test location fix(tests): updated redocly openapi schema location Nov 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant