-
|
Hi, is it somehow possible to set in configuration to include |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
You can include schemas from #/components/schemas that aren't used by any operation in types.gen.ts by configuring parser.filters.schemas.include with the names (or regex patterns) of the schemas you want to include. If you want to include all unused schemas, you can also set parser.filters.orphans to true to preserve orphaned resources in the generated output. There isn't a single global option to always include all schemas, but using these filters gives you fine-grained control over which schemas are included in types.gen.ts. See the configuration details in the docs for more info: parser filters and migration guide. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
You can include schemas from #/components/schemas that aren't used by any operation in types.gen.ts by configuring parser.filters.schemas.include with the names (or regex patterns) of the schemas you want to include. If you want to include all unused schemas, you can also set parser.filters.orphans to true to preserve orphaned resources in the generated output. There isn't a single global option to always include all schemas, but using these filters gives you fine-grained control over which schemas are included in types.gen.ts. See the configuration details in the docs for more info: parser filters and migration guide.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Inco…