Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Correct pathing in OpenApi Parser Printing #2032

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

RohinBhargava
Copy link
Member

@RohinBhargava RohinBhargava commented Jan 16, 2025

Short description of the changes made

  • There were cases where paths were bringing in extraneous /, which is treated as ~1 in json paths
  • Add support for replacing ~ with ~0 in paths
  • There were indexes like item[$index] -> the correct way to do this is item/$index. We add the notion of passing an array of paths to model this without / getting replaced

What was the motivation & context behind this PR?

  • Better error messaging for OAI parsing

How has this PR been tested?

  • Logging in tests

@RohinBhargava RohinBhargava marked this pull request as ready for review January 16, 2025 16:05
Copy link

vercel bot commented Jan 16, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
rbac.ferndocs.com ❌ Failed (Inspect) Jan 16, 2025 4:05pm
1 Skipped Deployment
Name Status Preview Updated (UTC)
fern-shell ⬜️ Ignored (Inspect) Jan 16, 2025 4:05pm

Copy link

github-actions bot commented Jan 16, 2025

📦 Next.js Bundle Analysis for fern-platform-monorepo

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

Copy link

github-actions bot commented Jan 16, 2025

PR Preview

Copy link

github-actions bot commented Jan 16, 2025

Playwright test results

passed  98 passed
flaky  1 flaky
skipped  2 skipped

Details

stats  101 tests across 9 suites
duration  59.9 seconds
commit  2107008

Flaky tests

chromium › skew-protection/index.test.ts › should contain ?dpl= or x-deployment-id header on all scripts and prefetch requests

Skipped tests

chromium › posthog.spec.ts › Posthog loads successfully
chromium › websockets/websocket.spec.ts › websocket test

Copy link
Member

@dsinghvi dsinghvi left a comment

Choose a reason for hiding this comment

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

@RohinBhargava can you add some sort of testing on the fern check errors and make the snapshot testing capture the change in pathId

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.

3 participants