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

“Live” previews doesn't follow changes of file system based external refs #545

Open
paulRbr opened this issue Dec 1, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@paulRbr
Copy link
Member

paulRbr commented Dec 1, 2023

With the live preview command bump preview --live if the provided definition uses file system based references, then those external references are not “watched” by the CLI.

E.g. openapi.yaml

paths:
  /v1/version:
    $ref: 'v1/version.yaml'

With a Path Item object of the /v1:version endpoint in the external file v1/version.yaml

Steps to reproduce

  • Launch the live preview command bump preview --live --open openapi.yaml
  • Change the v1/version.yaml file
  • Nothing happens

What should happen

  • Launch the live preview command bump preview --live --open openapi.yaml
  • Change the v1/version.yaml file
  • The preview should be updated with the latest file system changes
@paulRbr paulRbr added the bug Something isn't working label Dec 1, 2023
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

1 participant