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 [email protected] #590

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

section/Authentication strange behavior [email protected] #590

savage4pro opened this issue Aug 2, 2018 · 1 comment

Comments

@savage4pro
Copy link

  1. swagger 2.0 + [email protected] = 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://raw.githubusercontent.com/Rebilly/ReDoc/master/demo/swagger.yaml'></redoc>
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/bundles/redoc.standalone.js"> </script>
  </body>
</html>

swagger 2.0 + redoc@2.0.0-alpha.32


  1. openapi 3.0.0 + [email protected] = duplicated schemas

...
  <body>
    <redoc spec-url='https://raw.githubusercontent.com/Rebilly/ReDoc/master/demo/openapi.yaml'></redoc>
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/bundles/redoc.standalone.js"> </script>
  </body>
...

openapi 3.0.0 + redoc@2.0.0-alpha.32


  1. swagger 2.0 + [email protected] = no schemas is visible (but refs are presented as well)

...
  <body>
    <redoc spec-url='https://raw.githubusercontent.com/Rebilly/ReDoc/master/demo/swagger.yaml'></redoc>
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/bundles/redoc.standalone.js"> </script>
  </body>
...

swagger 2.0 + redoc@2.0.0-alpha.33


  1. openapi 3.0.0 + [email protected] = no securitySchemes is visible (but refs are presented as well)

...
  <body>
    <redoc spec-url='https://raw.githubusercontent.com/Rebilly/ReDoc/master/demo/openapi.yaml'></redoc>
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/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 [email protected] 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