I tried using the Redocly filter-in decorator and it was not applied by openapi-typescript.
There was no error
Name
Version
openapi-typescript
7.0.0
Node.js
20.14.0
OS + version
Linux version 6.6.32-1-MANJARO
Reproduction
Use a redocly.yaml file with the filter-in decorator which allows you to exclude non-matching operations.
When I use this same redocly.yaml file with the redocly bundle command directly, it produces a new OpenAPI schema file that only includes the desired operation.
I thought that I could workaround this issue by just taking the new filtered OpenAPI schema file produced by my redocly bundle command and feeding that into openapi-typescript instead of the url, but that caused openapi-typescript to freeze. I did not open an issue for the freezing, but you can read about the details of my adventure in #1682 starting here.
The workaround that I detailed in #1682 works now, with a small change. (The workaround is basically to just use redocly bundle to produce an intermediate schema file that gets fed into openapi-typescript.)
Description
I tried using the Redocly
filter-in
decorator and it was not applied byopenapi-typescript
.openapi-typescript
7.0.0
20.14.0
Linux version 6.6.32-1-MANJARO
Reproduction
Use a
redocly.yaml
file with the filter-in decorator which allows you to exclude non-matching operations.When I use this same
redocly.yaml
file with theredocly bundle
command directly, it produces a new OpenAPI schema file that only includes the desired operation.I thought that I could workaround this issue by just taking the new filtered OpenAPI schema file produced by my
redocly bundle
command and feeding that intoopenapi-typescript
instead of the url, but that causedopenapi-typescript
to freeze. I did not open an issue for the freezing, but you can read about the details of my adventure in #1682 starting here.redocly.yaml
file:Expected result
I should get an output file with only the operations specified by the
filter-in
decorator.Checklist
npx @redocly/cli@latest lint
)