Update from code changes: document OpenAPI overlay support - #7282
Merged
Conversation
Contributor
Author
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
Contributor
Author
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
Contributor
Author
|
Update from code changes updated this PR. Verified best-practices pass; nothing new added Source PRs
|
Consolidates the two overlay docs PRs into this one. Keeps this PR's structure and anchors (already referenced from the glossary, settings pages, and translations), tightens the prose toward the page's voice, leads with "Use OpenAPI Overlays to...", drops repeated "Mintlify" subjects, and renames the example heading to "Rename a path" to match the page's imperative headings. fr/es/zh mirrors updated to match. Co-authored-by: Cursor <cursoragent@cursor.com>
brandonmcconnell
approved these changes
Sep 6, 2026
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
Mintlify now supports the OpenAPI Overlay Specification (versions 1.0 and 1.1) for transforming OpenAPI specs without editing their source files. Overlays can be listed explicitly with a new
overlaysarray on the object form of theopenapiconfig, or auto-discovered from repo files with a top-leveloverlaykey and anextendslink. Overlays apply before validation, so generated pages, frontmatter references, andmint validateall see the transformed document. Feature PRs: https://github.com/mintlify/mint/pull/10770 and https://github.com/mintlify/server/pull/7977Changes
api-playground/openapi-setup.mdx: new "Transform your spec with overlays" section covering overlay documents and actions (update,remove,copy), explicitoverlaysconfig, auto-discovery viaextends, ordering and opt-out rules, failure behavior (explicit overlay failures fail validation; auto-discovered failures are skipped), and a path-rename example.organize/settings-api.mdx:overlaysfield on theapi.openapiobject with an example.organize/settings-reference.mdx: updatedapi.openapitype signature.reference/glossary.mdx: "Overlay" entry.fr/,es/,zh/mirrors), preserving English anchor slugs and language-prefixed internal links.zh/api-playground/openapi-setup.mdxdescription to CJK length guidelines.Context
The feature author has a separate open docs PR (#7261) for the same feature; maintainers may prefer one or merge the two.
Update history
Note
Low Risk
Documentation-only changes with no runtime or config schema implementation in this repo.
Overview
Documents OpenAPI Overlay support (spec 1.0/1.1) so teams can transform specs without editing source files.
Adds a Transform your spec with overlays section to OpenAPI setup: overlay actions (
update,remove,copy), wiring via the object form ofopenapiwith anoverlaysarray, auto-discovery via top-leveloverlay+extends, ordering/opt-out ("overlays": []), build rules (conflicting overlay lists fail the build), and different failure behavior for explicit vs auto-discovered overlays. Includes a path-rename recipe and notes that validation and frontmatter must use post-overlay paths.Updates
api.openapiin settings API/reference (newoverlaysfield and example), adds a glossary Overlay entry, mirrors everything in es, fr, and zh (with English anchor IDs), and shortens the Chinese OpenAPI setup page description.Reviewed by Cursor Bugbot for commit e4ac997. Bugbot is set up for automated code reviews on this repo. Configure here.