Skip to content

Commit 468485e

Browse files
committed
fixup! docs: add ParametersWrapper docs
1 parent 52e5aaa commit 468485e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

website/docs/codegen/CLI/cli.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,12 @@ It is possible to use multiple plugins at the same time. For example, `--plugin
186186
- `<method> <path glob>` - Match operations by HTTP method and path pattern
187187
- `<path glob>` - Match operations by path pattern only (all methods)
188188
- Supports glob patterns (wildcards) for flexible matching
189+
- Negative patterns: Use `!` prefix to exclude specific paths (e.g., `'/*,!/fields'` means all paths except `/fields`)
189190
- **Examples:**
190191
- `--operation-parameters-type-wrapper 'get /files/**' 'type:ReadParametersWrapper' 'import:../../type-overrides/parameters-wrapper.js'` - Use _ParametersWrapper_ for all GET operations under `/files/**`
191192
- `--operation-parameters-type-wrapper 'delete /approval_policies/{approval_policy_id}' 'type:DeleteParametersWrapper' 'import:../../type-overrides/parameters-wrapper.js'` - Use _ParametersWrapper_ for a specific DELETE operation
192193
- `--operation-parameters-type-wrapper 'post,put /api/**' 'type:WriteParametersWrapper' 'import:../types/write-parameters-wrapper.js'` - Use _WriteParametersWrapper_ for POST and PUT operations under `/api/**`
194+
- `--operation-parameters-type-wrapper '/**,!/fields' 'type:ItemsQueryParametersWrapper' 'import:./types'` - Use _ItemsQueryParametersWrapper_ for all paths except `/fields`
193195
- This option is particularly useful when you need to provide custom parameter handling logic or transform parameters before they are used in API calls.
194196
- **`--create-api-client-fn <functionName> [options...]`:** Configure API client creation function. Allows specifying the function name used to create the API client, as well as fine-tuning included services and callbacks.
195197
You can specify this option **multiple times** to generate **several different API client** creation functions from a single OpenAPI document - for example,

0 commit comments

Comments
 (0)