Skip to content

CLOUDP-475594: Deploy acyclic docs-render view of discriminated union to Bump.sh - #1621

Draft
wtrocki wants to merge 1 commit into
mainfrom
cloudp-475594-bump-docs-normalization
Draft

wtrocki wants to merge 1 commit into
mainfrom
cloudp-475594-bump-docs-normalization

Conversation

@wtrocki

@wtrocki wtrocki commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Proposed changes

Jira ticket: CLOUDP-475594

WIP:
Run a normalization step in the Bump deploy job that rewrites only the deployed copy of each spec into an acyclic render view of the affected discriminated union. Requires reaching out to Bump.sh team for long term fix.

Checklist

  • I have signed the MongoDB CLA
  • I have added tests that prove my fix is effective or that my feature works

Changes to Spectral

… to Bump.sh

Bump.sh's renderer regressed between 2026-07-22 and 2026-11-09: a
discriminated union whose parent declares properties alongside oneOf
(children composing back via allOf) renders as an opaque array[object]
when reached through array items in a request body. regionConfigs on
createGroupCluster/updateGroupCluster lost all provider fields in the
published docs for API versions 2024-08-05 onward.

Add normalizeDiscriminatedUnionForBump.js, run in the Bump deploy job,
which rewrites only the deployed copy of each spec into an acyclic
render view (shared fields extracted to CloudRegionConfig20240805Base,
children compose the base). The committed published spec is untouched,
so API contract, SDKs, and compatibility tooling see no change. The
script passes the spec through unchanged once the source schema is
refactored.

Verified against the real Bump renderer via the previews API: exact
published artifact renders 0 variant tabs before and 168 variant tabs
after normalization, legacy 2023-02-01 body unchanged.
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.

1 participant