Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: callback operation header #2487

Merged
merged 8 commits into from
Dec 26, 2023
Merged

Conversation

mallachari
Copy link
Contributor

Addresses: https://github.com/stoplightio/platform-internal/issues/18498

Within callbacks we don't want to show base url from parent operation. Since callback path usually comes with full url, either as runtime expression or static url, we want to show only path.

This PR adds an optional property hideServerUrl to OperationHeader and MethodPath and sets it to true for Callback component.

Path as runtime expression:
Screenshot 2023-12-20 at 17 13 00

Static path:
Screenshot 2023-12-20 at 17 13 50

Copy link

netlify bot commented Dec 20, 2023

Deploy Preview for stoplight-elements ready!

Name Link
🔨 Latest commit 4da75fe
🔍 Latest deploy log https://app.netlify.com/sites/stoplight-elements/deploys/658a6e2b01f7a80008a17020
😎 Deploy Preview https://deploy-preview-2487--stoplight-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Dec 20, 2023

Deploy Preview for stoplight-elements-demo ready!

Name Link
🔨 Latest commit 4da75fe
🔍 Latest deploy log https://app.netlify.com/sites/stoplight-elements-demo/deploys/658a6e2ba1be010008f65663
😎 Deploy Preview https://deploy-preview-2487--stoplight-elements-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@mallachari mallachari marked this pull request as ready for review December 20, 2023 23:37
@mallachari mallachari requested a review from a team as a code owner December 20, 2023 23:37
@mallachari mallachari requested review from P0lip, a team, brendarearden and matthewmurphy and removed request for a team and P0lip December 20, 2023 23:37
…acks.tsx

Co-authored-by: Daniel A. White <daniel.white@smartbear.com>
@mallachari mallachari merged commit ca9e465 into main Dec 26, 2023
9 checks passed
@mallachari mallachari deleted the fix/callback-operation-header branch December 26, 2023 06:17
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.

None yet

4 participants