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

section/Authentication strange behavior redoc@2.0.0-alpha.33 #590

Closed
savage4pro opened this issue Aug 2, 2018 · 1 comment
Closed

section/Authentication strange behavior redoc@2.0.0-alpha.33 #590

savage4pro opened this issue Aug 2, 2018 · 1 comment

Comments

@savage4pro
Copy link

  1. swagger 2.0 + redoc@2.0.0-alpha.32 = things are normal

<!DOCTYPE html>
<html>
  <head>
    <title>ReDoc</title>
    <!-- needed for adaptive design -->
    <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">

    <!--
    ReDoc doesn't change outer page styles
    -->
    <style>
      body {
        margin: 0;
        padding: 0;
      }
    </style>
  </head>
  <body>
    <redoc spec-url='https://github.com/raw/Rebilly/ReDoc/master/demo/swagger.yaml'></redoc>
    <script src="https://cdn.jsdelivr.net/npm/redoc@2.0.0-alpha.32/bundles/redoc.standalone.js"> </script>
  </body>
</html>

swagger 2.0 + redoc@2.0.0-alpha.32


  1. openapi 3.0.0 + redoc@2.0.0-alpha.32 = duplicated schemas

...
  <body>
    <redoc spec-url='https://github.com/raw/Rebilly/ReDoc/master/demo/openapi.yaml'></redoc>
    <script src="https://cdn.jsdelivr.net/npm/redoc@2.0.0-alpha.32/bundles/redoc.standalone.js"> </script>
  </body>
...

openapi 3.0.0 + redoc@2.0.0-alpha.32


  1. swagger 2.0 + redoc@2.0.0-alpha.33 = no schemas is visible (but refs are presented as well)

...
  <body>
    <redoc spec-url='https://github.com/raw/Rebilly/ReDoc/master/demo/swagger.yaml'></redoc>
    <script src="https://cdn.jsdelivr.net/npm/redoc@2.0.0-alpha.33/bundles/redoc.standalone.js"> </script>
  </body>
...

swagger 2.0 + redoc@2.0.0-alpha.33


  1. openapi 3.0.0 + redoc@2.0.0-alpha.33 = no securitySchemes is visible (but refs are presented as well)

...
  <body>
    <redoc spec-url='https://github.com/raw/Rebilly/ReDoc/master/demo/openapi.yaml'></redoc>
    <script src="https://cdn.jsdelivr.net/npm/redoc@2.0.0-alpha.33/bundles/redoc.standalone.js"> </script>
  </body>
...

openapi 3.0.0 + redoc@2.0.0-alpha.33


Nevertheless, in my current project a bunch of openapi 3.0.0 with redoc@2.0.0-alpha.32 works as expected (in this case), because i'm not using <security-definitions /> injection causes duplication, but alpha.33 doesn't show securitySchemes too.

current openapi 3.0.0 + redoc@2.0.0-alpha.32

@RomanHotsiy
Copy link
Member

I must have broken something.
I will check it up asap.

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

No branches or pull requests

2 participants