chore(cli): migrate @fern-api/openapi-ir-parser to use CliError#15007
chore(cli): migrate @fern-api/openapi-ir-parser to use CliError#15007
Conversation
0a6ff29 to
6eff7bf
Compare
6eff7bf to
ee9ca3c
Compare
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.
SDK Generation Benchmark ResultsComparing PR branch against latest nightly baseline 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 |
Docs Generation Benchmark ResultsComparing PR branch against latest nightly baseline on
Docs generation runs |

Description
Migrates
@fern-api/openapi-ir-parserto use explicitCliErrorerror codes on everyfailAndThrow/failWithoutThrowingcall site.This is one of the package migration PRs that follow the error classification system introduced in #14749.
Changes Made
Assigned typed error codes across call sites in the OpenAPI IR parser package.
Error codes used
PARSE_ERRORVALIDATION_ERRORREFERENCE_ERROR$refreferences in OpenAPI specsFiles touched (grouped by area)
Testing
pnpm test, excluding e2e and pre-existing environment failures)