You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/codegen/CLI/cli.mdx
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -186,10 +186,12 @@ It is possible to use multiple plugins at the same time. For example, `--plugin
186
186
-`<method> <path glob>` - Match operations by HTTP method and path pattern
187
187
-`<path glob>` - Match operations by path pattern only (all methods)
188
188
- Supports glob patterns (wildcards) for flexible matching
189
+
- Negative patterns: Use `!` prefix to exclude specific paths (e.g., `'/*,!/fields'` means all paths except `/fields`)
189
190
-**Examples:**
190
191
-`--operation-parameters-type-wrapper 'get /files/**' 'type:ReadParametersWrapper' 'import:../../type-overrides/parameters-wrapper.js'` - Use _ParametersWrapper_ for all GET operations under `/files/**`
191
192
-`--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
192
193
-`--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`
193
195
- This option is particularly useful when you need to provide custom parameter handling logic or transform parameters before they are used in API calls.
194
196
-**`--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.
195
197
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