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

Changes to swizzled ApiExplorer/SecuritySchemes do not take effect. #824

Open
tyler-mairose-sp opened this issue May 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@tyler-mairose-sp
Copy link

Describe the bug

When I swizzle (eject) ApiExplorer/SecuritySchemes, the changes I make to the index.js file do not take effect.

To keep things simple I wanted to expand the Security Schemes section by default. To accomplish this I was changing line 24 to set open to true:

{ className: "openapi-security__details", open: true }

Expected behavior

I would expect that the dropdown here would be expanded when I open the page.

image

Current behavior

Right now nothing happens when I change this value or anything else on the swizzled component.

image

Possible solution

Context

Our users don't necessarily know that that AUTHORIZATION: OAUTH can be expanded. Adding an arrow to show that this section could be expanded and closed. The section is a little cluttered for us and we wanted to remove some of the extra properties description and flows. We also wanted to add a custom variable in our spec and read it in and show it in this section as well.

Your Environment

  • Version used:
  • Docusaurus Version: 2.4.3
  • docusaurus-theme-openapi-docs version: 2.0.2
  • Environment name and version (e.g. Chrome 59, node.js 5.4, python 3.7.3): Chrome Version 124.0.6367.203
  • Operating System and version (desktop or mobile): MacOS 14.5 (23F79)
  • Link to your project: https://github.com/sailpoint-oss/developer.sailpoint.com
@tyler-mairose-sp tyler-mairose-sp added the bug Something isn't working label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant