Skip to content

docs: document multiple override files support in generators.yml#3894

Open
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin/1772216458-document-multiple-overrides
Open

docs: document multiple override files support in generators.yml#3894
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin/1772216458-document-multiple-overrides

Conversation

@devin-ai-integration
Copy link
Contributor

docs: document multiple override files support in generators.yml

Summary

Documents the new multiple override files feature from fern-api/fern#11486. The overrides field in generators.yml now accepts either a single path (string) or an array of paths applied sequentially. This PR updates all documentation surfaces to reflect this:

  • Schema definition (fern/apis/generators-yml/definition/generators.yml): Added OverridesSchema undiscriminated union type (string | list<string>) and updated all spec schemas (OpenAPI, AsyncAPI, OpenRPC, Protobuf, and legacy APIDefinitionWithOverridesSchema) to use it.
  • Spec reference snippets (openapi-specs.mdx, grpc-specs.mdx): Updated overrides ParamField types and added inline YAML examples showing both single and array usage.
  • generators.yml reference (generators-yml-reference.mdx): Updated AsyncAPI and OpenRPC overrides ParamField types with examples.
  • Overrides concept page (overrides.mdx): Added a "Multiple override files" section explaining the feature, use cases, and examples. Also added an array example in the existing "Add a reference to generators.yml" step.

Review & Testing Checklist for Human

  • Verify the "Multiple override files" section on overrides.mdx accurately describes sequential application behavior — the claim that "later files take precedence over earlier ones for conflicting keys" should match the actual deep-merge behavior in the CLI
  • Check that the deprecated GeneratorsOpenAPIObjectSchema (line ~119 in the schema file) intentionally still uses optional<string> for its overrides field — this is the legacy top-level openapi key, not V2 specs, so it was left unchanged to match the CLI
  • Verify rendered output — deploy preview should show the updated ParamField types as string | list of strings with working code examples and links (e.g., the /learn/api-definitions/overview/overrides cross-references)

Notes

Update documentation to reflect that the overrides field now accepts
either a single path or an array of paths for OpenAPI, AsyncAPI,
OpenRPC, and Protobuf spec types. When multiple paths are provided,
overrides are applied sequentially in order.

Refs: fern-api/fern#11486
Co-Authored-By: bot_apk <apk@cognition.ai>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@fern-api
Copy link
Contributor

fern-api bot commented Feb 27, 2026

Requested by: judah
Slack thread: View conversation

@github-actions
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants