Repository navigation
fix(cli): warn about legacy behavior that fern sdk migrate drops - #18914
Open
devin-ai-integration[bot] wants to merge 6 commits into
Open
devin-ai-integration[bot] wants to merge 6 commits into
devin-ai-integration[bot] wants to merge 6 commits into
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
…y check Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…nfig Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…rget Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
There was a problem hiding this comment.
Devin Review found 3 findings. Devin automatically fixed all 3 findings.
Fixed by Devin (3)
- Missing warnings for later SDK targets — Real gap. Merged targets now carry the union of every target's unmigratedApiImportSettings, so the diagnostics and --strict cover all of them.
- Compatible SDK targets rejected — Real regression: two targets that differ only in a dropped setting were rejected. The fingerprint now ignores unmigratedApiImportSettings.
- Supported union setting blocks migration — SDK Config v1 has apiImportSettings.inferDiscriminatedUnionBaseProperties, so migrate now carries the setting over instead of warning.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Jira ticket: SDK-3463
fern sdk migratedropped several legacy behaviors without printing a diagnostic. I found them by generating a seed spec with the legacy generators and again after migration. Each one now produces a warning, and each warning fails--strict.Changes Made
FERN_API_AUTH_FIELD_UNSUPPORTEDfor a header authnameor bearertoken.namethat differs from the SDK Config default (apiKey/token). SDK Config v1 auth schemes have no field for the option name. The warning gives thex-fern-header/x-fern-beareroverlay that keeps the name. Covers the bearer half of SDK-3447.FERN_API_IMPORT_SETTING_UNSUPPORTEDfor each generators.yml API setting that SDK Config v1 can't carry, for examplefilter,resolve-aliases,coerce-consts-toandexample-generation(UNMIGRATED_API_IMPORT_SETTING_KEY_PAIRS). The setting is flagged on workspace specs and on generatorapioverrides.remove-discriminants-from-schemas: alwaysis the default, so it isn't flagged.FERN_SPEC_EXTENSION_UNSUPPORTED(scanSourceSpecExtensions.ts) forx-fern-base-path,x-fern-sdk-variables, and offsetx-fern-paginationwithoutstep. These are found in OpenAPI specs and their overlays.The spec-extension warnings describe what sdk-gen-core does today. They should be removed once the sdk-gen-core PRs that add support for these extensions ship.
Testing
driftDiagnostics.test.ts). The fullsdk-migratesuite passes (120 tests).Link to Devin session: https://app.devin.ai/sessions/25aa81329a9e413b9b5633a0c28ecd8c
Open in Devin Desktop: https://app.devin.ai/desktop/session/25aa81329a9e413b9b5633a0c28ecd8c?variant=devin
Requested by: @cdonel707
🟢 Devin fixed all 3 findings · Follow Devin's work