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

Hides request payload examples #2421

Closed
da-sypha opened this issue Sep 29, 2023 · 2 comments · Fixed by #2436
Closed

Hides request payload examples #2421

da-sypha opened this issue Sep 29, 2023 · 2 comments · Fixed by #2436
Assignees

Comments

@da-sypha
Copy link

da-sypha commented Sep 29, 2023

Describe the bug
Hiding request payload examples doesn't seem to work. Apologies if this does work, but I've been trying to hide the payload examples as I want to just show Curl examples.

Expected behavior
The payload example is hidden for request examples

Minimal reproducible OpenAPI snippet(if possible)

<!DOCTYPE html>
<html>
  <head>
    <title>Redoc</title>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">
    <style>
      body {
        margin: 0;
        padding: 0;
      }
    </style>
  </head>
  <body>
    <redoc spec-url='http://petstore.swagger.io/v2/swagger.json' hide-download-button=true hide-request-payload-sample=true></redoc>
    <script src="https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js"> </script>
  </body>
</html>

Screenshots
N/A.

Additional context
None.

@AlexVarchuk AlexVarchuk self-assigned this Oct 5, 2023
@ZyzychO
Copy link

ZyzychO commented Oct 5, 2023

Hey @da-sypha! We can confirm the issue on our end. Thanks for the report!

Stay tuned for updates.

@zgheibali
Copy link

Any update on this, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants