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

When using parameterized server URL, parameter editor not displayed on first load #1755

Closed
lirc571 opened this issue May 16, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@lirc571
Copy link

lirc571 commented May 16, 2024

What happens?

When there are variables in the server URL, the Base URL section does not show an editor for those variables on first load.

What did you expect to happen?

The variable editor should be displayed.

How can we reproduce the issue?

Go to https://docs.scalar.com/swagger-editor, import URL https://raw.githubusercontent.com/gravitee-io/gravitee-api-management/master/gravitee-apim-rest-api/gravitee-apim-rest-api-management-v2/gravitee-apim-rest-api-management-v2-rest/src/main/resources/openapi/openapi-apis.yaml, after loading, there is no parameter editor:

image

(The screenshot above also shows that issue #1035 still exists)

But if we click the format code button on the top right corner of the spec editor, the parameter editor will appear:

image

Swagger/OpenAPI Example

https://raw.githubusercontent.com/gravitee-io/gravitee-api-management/master/gravitee-apim-rest-api/gravitee-apim-rest-api-management-v2/gravitee-apim-rest-api-management-v2-rest/src/main/resources/openapi/openapi-apis.yaml

@lirc571 lirc571 added the bug Something isn't working label May 16, 2024
@hanspagel
Copy link
Member

hanspagel commented May 16, 2024

Can confirm, it’s still there! I’ll fix this.

https://sandbox.scalar.com/e/3gSDa

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

2 participants