Skip to content

FR: Support preview refresh on save for redoc also #199

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

Open
matter-it-does opened this issue Feb 1, 2023 · 2 comments
Open

FR: Support preview refresh on save for redoc also #199

matter-it-does opened this issue Feb 1, 2023 · 2 comments

Comments

@matter-it-does
Copy link

matter-it-does commented Feb 1, 2023

swagger ui preview doesn't support openapi 3.1.0 swagger-api/swagger-ui#5891, so I'm using redoc.

It doesn't refresh automatically when file is saved.

v4.15.16

Or tell me how to configure this task properly?

                {
			// "type": "process",
			"command" : "${command:openapi.previewRedoc}",
			"label": "Preview OpenAPI redoc",
			"group": "build"
		}
@ak1394
Copy link
Collaborator

ak1394 commented Feb 1, 2023

This is likely related to the fact that we don't support 3.1 in the extension yet, for 3.0.x we do update preview when the file has changed. If generating preview for 3.1 works, this is a bit unexpected and might break on more complex OAS 3.1 files.

I had a quick look, and while it seems there is no built in way to run command on save, there is an extension called "Run on Save", perhaps you should look into that?

@matter-it-does
Copy link
Author

matter-it-does commented Feb 2, 2023

i meant as a build task. The command is working now somehow.

preview still not working

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