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

Response content doesn't render in "column" mode #3

Closed
jakul opened this issue Feb 15, 2019 · 3 comments
Closed

Response content doesn't render in "column" mode #3

jakul opened this issue Feb 15, 2019 · 3 comments

Comments

@jakul
Copy link
Contributor

jakul commented Feb 15, 2019

The response examples don't render at all in column mode.
captura de tela 2019-02-15 as 09 31 05

Here's the same example in row mode:
captura de tela 2019-02-15 as 09 31 16

@mrin9
Copy link
Collaborator

mrin9 commented Feb 15, 2019

Can you checkout this example, which is using column layout. It shows up fine on my end, is it breaking on your side ?

Can you share the following info

  • RapiDoc Version you are using
  • Browser and its Version
  • OS and Screen Resolution
  • Are you using JavaScript to change the attribute ? or directly passing it in the element

@jakul
Copy link
Contributor Author

jakul commented Feb 18, 2019

https://rapidocweb.com/example4.html renders correctly for me - I can see the example and model responses.

I've investigated a bit more, and the problem shows when the first tag in the page is <html>. Your exmaple4 starts with <!doctype html>.

I see the problem with this HTML:

<html>
  <head>
    <meta charset="utf-8"> <!-- Important: The Custom element uses utf8 charecters -->
    <script src="https://unpkg.com/rapidoc/dist/rapidoc-min.js"></script>
  </head>
  <body>
    <rapi-doc
      spec-url="https://api.apis.guru/v2/specs/bitbucket.org/2.0/swagger.json"
      layout="column"
    ></rapi-doc>
  </body>
</html>

And not with this HTML:

<!doctype html>
  <head>
    <meta charset="utf-8"> <!-- Important: The Custom element uses utf8 charecters -->
    <script src="https://unpkg.com/rapidoc/dist/rapidoc-min.js"></script>
  </head>
  <body>
    <rapi-doc
      spec-url="https://api.apis.guru/v2/specs/bitbucket.org/2.0/swagger.json"
      layout="column"
    ></rapi-doc>
  </body>
</html>

I can replicate the problem with example4.html too, by changing the opening tag to be <html> instead of <!doctype html>

This was referenced Feb 18, 2019
@mrin9
Copy link
Collaborator

mrin9 commented Feb 18, 2019

oh I c, thank-you for investigating and finding the cause

@mrin9 mrin9 closed this as completed Feb 18, 2019
mrin9 pushed a commit that referenced this issue Dec 8, 2020
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