-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(oas): account for deep
$ref
pointers when reducing an API def (#…
…926) | 🚥 Resolves #925 | | :------------------- | ## 🧰 Changes This updates `oas/reducer` to account for deep `$ref` pointers like `#/components/examples/event-min/value`. Normally when we're running through components to remove we only look at `#/components/examples/event-min`, however when a schema like this is deeply referenced we won't pick up that it's used and end up removing `event-min` from the components block, resulting in a corrupted schema that will no longer validate.
- Loading branch information
Showing
2 changed files
with
19 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters