zalando / intellij-swagger

A plugin to help you easily edit Swagger and OpenAPI specification files inside IntelliJ IDEA
https://plugins.jetbrains.com/plugin/8347
MIT License
1.18k stars 74 forks source link

Fixes blank built-in preview in 2022.x #363

Closed cgrossde closed 1 year ago

cgrossde commented 1 year ago

It seems the LocalFileUrl is missing the file schema internally leading to an empty preview (IntelliJ Ultimate 2022.x). Using the Urls.newUri() and providing the file schema explicitly fixes the problem.

image

cberg-zalando commented 1 year ago

Thanks for your contribution, @cgrossde. Can you please run ./gradlew :spotlessApply to fix the formatting issues?

cgrossde commented 1 year ago

@cberg-zalando Done