Skip to content

Conversation

@tjb9dc
Copy link
Collaborator

@tjb9dc tjb9dc commented Dec 9, 2025

This enables a new workflow for creating OpenAPI overrides:

  1. Copy your OpenAPI spec
  2. Edit the copy directly (add x-fern-* extensions, etc.)
  3. Run fern overrides compare original.yaml modified.yaml
  4. Get a clean overrides file with only the differences

Features:

  • Supports both JSON and YAML input specs (can mix and match)
  • Always outputs YAML
  • Optional --output / -o flag to specify output path
  • Defaults to writing <original>-overrides.yml alongside the original file

Also reorganizes overrides commands under fern overrides:

  • fern overrides compare - new command
  • fern overrides write - moved from fern write-overrides
  • fern write-overrides - deprecated alias (hidden, shows warning)

🤖 Generated with Claude Code

@github-actions
Copy link
Contributor

github-actions bot commented Dec 9, 2025

🌱 Seed Test Selector

Select languages to run seed tests for:

  • Python
  • TypeScript
  • Java
  • Go
  • Ruby
  • C#
  • PHP
  • Swift
  • Rust
  • OpenAPI
  • Postman

How to use: Click the ⋯ menu above → "Edit" → check the boxes you want → click "Update comment". Tests will run automatically and snapshots will be committed to this PR.

@tjb9dc tjb9dc force-pushed the tb/cli-generate-overrides branch 2 times, most recently from 3c699bc to b1f7b53 Compare December 9, 2025 21:13
@tjb9dc tjb9dc requested a review from dsinghvi as a code owner December 9, 2025 21:13
… from spec diff

This enables a new workflow for creating OpenAPI overrides:
1. Copy your OpenAPI spec
2. Edit the copy directly (add x-fern-* extensions, etc.)
3. Run `fern overrides compare original.yaml modified.yaml`
4. Get a clean overrides file with only the differences

Features:
- Supports both JSON and YAML input specs (can mix and match)
- Always outputs YAML
- Optional `--output` / `-o` flag to specify output path
- Defaults to writing `<original>-overrides.yml` alongside the original file

Also reorganizes overrides commands under `fern overrides`:
- `fern overrides compare` - new command
- `fern overrides write` - moved from `fern write-overrides`
- `fern write-overrides` - deprecated alias (hidden, shows warning)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@tjb9dc tjb9dc force-pushed the tb/cli-generate-overrides branch from 18f3e09 to 94555cd Compare December 12, 2025 06:44
@tjb9dc tjb9dc merged commit 15b06bd into main Dec 12, 2025
101 checks passed
@tjb9dc tjb9dc deleted the tb/cli-generate-overrides branch December 12, 2025 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants