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

Editor not displaying #1432

Open
paulmeller opened this issue Apr 14, 2024 · 4 comments
Open

Editor not displaying #1432

paulmeller opened this issue Apr 14, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@paulmeller
Copy link

What happens?

I'm getting this issue from both plain HTML with CDN and the React component:
Screenshot 2024-04-14 at 11 14 22 AM

What did you expect to happen?

The Editor to be displayed

How can we reproduce the issue?

<!doctype html>

<title>API Reference</title> <script id="api-reference" data-url="https://petstore3.swagger.io/api/v3/openapi.json" data-proxy-url="https://api.scalar.com/request-proxy"></script> <script> var configuration = { theme: 'purple', isEditable: true }
var apiReference = document.getElementById('api-reference')
apiReference.dataset.configuration = JSON.stringify(configuration)
</script> <script src="https://cdn.jsdelivr.net/npm/@scalar/api-reference"></script>

Swagger/OpenAPI Example

https://petstore3.swagger.io/api/v3/openapi.json

@paulmeller paulmeller added the bug Something isn't working label Apr 14, 2024
@marclave
Copy link
Member

hey @paulmeller we are going to be adding a separate package so we dont bundle the editor with the standalone app! We will update this issue with our progress from this week ✨

@paulmeller
Copy link
Author

paulmeller commented Apr 16, 2024 via email

@amritk amritk self-assigned this Apr 16, 2024
@hanspagel
Copy link
Member

Relevant PR #1490

@hanspagel
Copy link
Member

@paulmeller 1.18.1 was the last version that included the editor. Sorry for the long wait!

    <script src="https://cdn.jsdelivr.net/npm/@scalar/[email protected]"></script>

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

4 participants