openapi-typescript icon indicating copy to clipboard operation
openapi-typescript copied to clipboard

Generate subset of schema

Open yethee opened this issue 1 year ago • 5 comments

Description

I've OpenAPI schema with multiple the security schemes. Some paths are public and some are internal.

How to get types for public paths (methods) only?

Proposal

May be we can add an option to filter by path, tags or operation id?

--filter 'operation=foo' --filter 'operaton=bar' // include only matched by operation id
--filter 'operation!=foo'                        // exclude path by operation id
--filter 'tag!=tag name'                         // excude by tag

yethee avatar May 27 '24 12:05 yethee