Skip to content

Conversation

@nolannbiron
Copy link
Member

No description provided.

@linear
Copy link

linear bot commented Oct 30, 2025

@changeset-bot
Copy link

changeset-bot bot commented Oct 30, 2025

🦋 Changeset detected

Latest commit: 8aa46bf

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@gitbook/react-openapi Patch
gitbook Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@argos-ci
Copy link

argos-ci bot commented Oct 30, 2025

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
customers-v2 (Inspect) 👍 Changes approved 4 added Oct 30, 2025, 2:40 PM
v2-cloudflare (Inspect) 👍 Changes approved 1 changed Oct 30, 2025, 2:44 PM
v2-vercel (Inspect) 👍 Changes approved 2 changed Oct 30, 2025, 2:44 PM

@nolannbiron nolannbiron requested review from Copilot and gregberge and removed request for Copilot October 30, 2025 13:44
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances OAuth2 security scope resolution and improves UI styling consistency across the OpenAPI documentation components.

Key changes:

  • Updates OAuth2 scope resolution to filter operation-specific scopes from security scheme definitions rather than showing all scopes
  • Adds conditional rendering logic to display only operation-relevant OAuth2 scopes in the UI
  • Applies consistent border-radius styling patterns across OpenAPI components using straight-corners and circular-corners variants

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
packages/react-openapi/src/resolveOpenAPIOperation.ts Updated resolveSecurityScopes to filter and return only operation-specific OAuth2 scopes from security scheme flow definitions
packages/react-openapi/src/OpenAPISecurities.tsx Modified OAuth2 rendering to conditionally display operation-scoped OAuth2 flows, and added scopes property to security type
packages/gitbook/src/components/DocumentView/OpenAPI/style.css Applied consistent border-radius styling patterns using responsive design tokens for corner styles and improved dark mode hover states

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@nolannbiron nolannbiron merged commit 2c3066e into main Oct 30, 2025
16 checks passed
@nolannbiron nolannbiron deleted the nolann/rnd-8526-authorizations-lists-all-scheme-scopes-instead-of-endpoint branch October 30, 2025 14:46
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.

3 participants