Skip to content

Commit

Permalink
add directive to match parameter name (#27693)
Browse files Browse the repository at this point in the history
* update parameter name in examples

* Revert "update parameter name in examples"

This reverts commit ebba370.

* update ts.md

* update
  • Loading branch information
kazrael2119 authored Feb 8, 2024
1 parent a4d405d commit 3c53209
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,23 @@ typescript:
payload-flattening-threshold: 1
clear-output-folder: true
generate-metadata: true

directive:
- from: azurelargeinstance.json
where: '$.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureLargeInstance/azureLargeInstances/{azureLargeInstanceName}"].patch.parameters'
transform: >
for (const param of $) {
if (param['name'] == 'tagsParameter') {
delete param["x-ms-client-name"]
}
}
- from: azurelargeinstance.json
where: '$.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureLargeInstance/azureLargeStorageInstances/{azureLargeStorageInstanceName}"].patch.parameters'
transform: >
for (const param of $) {
if (param['name'] == 'tagsParameter') {
delete param["x-ms-client-name"]
}
}
```

0 comments on commit 3c53209

Please sign in to comment.