bump-sh / bump-sh/cli

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

Open
#545 0 comments 0 reactions 0 assignees View on GitHub
👜 Totebag backend bug devops internal technical typescript
Dominant language
TypeScript
Stars
71
Forks
9
Avg merge
7m
Merged PRs (30d)
4

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.