Skip to content

test: bump docusaurus-openapi-docs to canary 0.0.0-1371 (DLP Data Profiles crash fix) - #1387

Open
sserrata wants to merge 2 commits into
masterfrom
test/openapi-canary-1371-dlp-fix
Open

test: bump docusaurus-openapi-docs to canary 0.0.0-1371 (DLP Data Profiles crash fix)#1387
sserrata wants to merge 2 commits into
masterfrom
test/openapi-canary-1371-dlp-fix

Conversation

@sserrata

Copy link
Copy Markdown
Member

What

Bumps docusaurus-plugin-openapi-docs and docusaurus-theme-openapi-docs from 5.1.2 to canary 0.0.0-1371 to validate a rendering fix on a deploy preview.

Why

The Data Loss Prevention → Data Profiles API pages (/dlp/api/) freeze and crash the browser tab. Root cause: infinite recursion in the theme's schema renderer when a oneOf's branches each declare their own discriminator on the same property (every DLP RuleItem variant does). The discriminator object is shared by reference and its inferred mapping ends up pointing back to the branch itself, recursing until the stack overflows.

Fixed upstream in PaloAltoNetworks/docusaurus-openapi-docs#1584 (merged); canary 0.0.0-1371 contains the compiled fix.

Testing

Verify on the deploy preview that the previously-crashing pages now render the full schema without freezing:

  • /dlp/api/get-v-2-api-data-profiles
  • /dlp/api/post-v-2-api-data-profiles
  • /dlp/api/get-v-2-api-data-profiles-resourceid
  • /dlp/api/put-v-2-api-data-profiles-resourceid
  • /dlp/api/patch-v-2-api-data-profiles-resourceid

Sanity-check a sibling resource (e.g. /dlp/api/get-v-2-api-data-patterns) still renders normally.

Note: this pins a 0.0.0-x canary for preview only. Once the upstream release ships, repoint to the tagged version before merging.

🤖 Generated with Claude Code

Canary build of docusaurus-openapi-docs that fixes the infinite-recursion
crash on Data Profiles API pages (self-referential discriminators). Bumps
the plugin and theme to 0.0.0-1371 to validate the fix on a deploy preview
before the upstream release lands.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@sserrata
sserrata requested a review from a team as a code owner July 30, 2026 20:30
The docusaurus-openapi-docs canary depends on sass-loader@^17, which
requires node >=22.11. Bump deploy-preview and deploy-live from node 20
to 22 (matching the node22 base image already used in .gitlab-ci.yml).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit a09b094):

https://pan-dev-f1b58--pr1387-6j9qeie1.web.app

(expires Thu, 06 Aug 2026 20:56:24 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 9359a9fa100d5fdb082f75280473a90b1f96eb51

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