docs: document preserve-one-of-in-all-of OpenAPI setting - #6484
Open
devin-ai-integration[bot] wants to merge 1 commit into
Open
docs: document preserve-one-of-in-all-of OpenAPI setting#6484devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Contributor
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.
Summary
preserve-one-of-in-all-ofis a new opt-in OpenAPI spec setting. Today, aoneOf(oranyOf) nested inside anallOfgets flattened: all variants' properties are merged into one object and marked optional, so the union disappears and invalid property combinations become representable. With the setting enabled, the importer keeps the union, so generated SDKs and the API Reference reflect the spec's real constraints (and the API Reference shows a variant selector).Implements docs for: feat(cli): add preserve-one-of-in-all-of OpenAPI setting (fern-api/fern#17289)
Adds one
<ParamField>to the shared OpenAPI spec settings snippet (fern/snippets/openapi-specs.mdx, rendered on the generators.yml references for SDKs and API definitions), placed next to the otheroneOf/allOfsettings:falseallOf: [oneOf: [A, B, C], S]becomesoneOf: [A & S, B & S, C & S], each variant keeping its own required properties plus the shared onesdiscriminatorare left intactNo new page and no changelog entry: the CLI changelog for 5.86.0 already covers the release (
fern/products/cli-api-reference/cli-changelog/2026-07-30.mdx), and this is a CLI/SDK setting rather than a Docs product feature.Link to Devin session: https://app.devin.ai/sessions/11132b3c32464381be946f33f0af06fd