fix(cli): CLI-18 CLI-46 handle absolute OpenAPI paths#15953
Conversation
Resolve absolute OpenAPI spec paths at the workspace loading boundary so user configuration does not trip relative path invariants. Co-authored-by: Cursor <cursoragent@cursor.com>
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.
Tip: disable this comment in your organization's Code Review settings.
Link the shipped Sentry triage ledger rows to their pull request. Co-authored-by: Cursor <cursoragent@cursor.com>
Docs Generation Benchmark ResultsComparing PR branch against median of 5 nightly run(s) on
Docs generation runs |
SDK Generation Benchmark ResultsComparing PR branch against median of 5 nightly run(s) on Full benchmark table (click to expand)
main (generator): generator-only time via --skip-scripts (includes Docker image build, container startup, IR parsing, and code generation — this is the same Docker-based flow customers use via |
Co-authored-by: Cursor <cursoragent@cursor.com>
|
Should we support absolute paths instead? |
# Conflicts: # .devin/automation/sentry-triage/ledger/CLI-18.json # .devin/automation/sentry-triage/ledger/CLI-46.json
Resolve absolute paths at workspace load time and propagate them safely through OpenAPI loading, IR parsing, and OSS validation instead of rejecting them or tripping RelativeFilePath.of invariants. Co-authored-by: Cursor <cursoragent@cursor.com>
Use shared resolveConfiguredFilepath when writing fetched specs so absolute OpenAPI paths in generators.yml work with fern api update. Co-authored-by: Cursor <cursoragent@cursor.com>
Resolve overrides and overlays with resolveConfiguredFilepaths so external spec companion files work outside the Fern workspace, including specs override flows in OSSWorkspace. Co-authored-by: Cursor <cursoragent@cursor.com>
Resolve graphql, openrpc, and protobuf schema paths with resolveConfiguredFilepath so generators.yml can reference files outside the Fern workspace consistently across spec types. Co-authored-by: Cursor <cursoragent@cursor.com>
Revert the allow-absolute-paths approach from this PR. Surface absolute OpenAPI spec paths as a user-facing workspace configuration error instead of resolving them through the workspace loader. Co-authored-by: Cursor <cursoragent@cursor.com>
It makes sense, I'm drafting another PR for it (Linear ticket). |
Description
Linear ticket: Refs CLI-18, CLI-46
Fixes Sentry triage group: RelativeFilePath.of absolute OpenAPI path during loadSingleNamespaceAPIWorkspace.
Changes Made
Testing
pnpm turbo run test --filter @fern-api/workspace-loaderSentry issues
Made with Cursor