Skip to content

Commit

Permalink
explain how to use filter recursively
Browse files Browse the repository at this point in the history
  • Loading branch information
Reuven committed May 31, 2022
1 parent 9359f75 commit 51bb9ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ oasdiff -fail-on-diff -breaking-only -format text -base https://raw.githubuserco
```bash
oasdiff -format text -filter "/api" -base https://raw.githubusercontent.com/Tufin/oasdiff/main/data/openapi-test1.yaml -revision https://raw.githubusercontent.com/Tufin/oasdiff/main/data/openapi-test3.yaml
```
Notes:
1. Filters are applied recursively at all levels. For example, if a path contains a [callback](https://swagger.io/docs/specification/callbacks/), the filter will be applied both to the path itself and to the callback path. To include such a nested change, use a regular expression that contains both paths, for example ```-filter "path|callback-path"```

### Exclude paths and operations with extension "x-beta"
```bash
Expand Down

0 comments on commit 51bb9ea

Please sign in to comment.