File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -393,14 +393,6 @@ directive:
393393 - Body
394394 - DueDateTime
395395 - Importance
396- # Rename all /$ref cmdlets to *ByRef e.g. New-MgGroupOwnerByRef
397- - from : ' openapi-document'
398- where : $.paths..operationId
399- transform : ' return $.replace("ByRef", "0Ref0")'
400- - where :
401- subject : ^(\w*[a-z])0Ref0$
402- set :
403- subject : $1ByRef
404396# Rename cmdlets
405397 - where :
406398 verb : Invoke
@@ -413,6 +405,15 @@ directive:
413405 variant : ^(Check|Verify)(.*)
414406 set :
415407 verb : Confirm
408+ # Rename all /$ref cmdlets to *ByRef e.g. New-MgGroupOwnerByRef
409+ - from : ' openapi-document'
410+ where : $.paths..operationId
411+ transform : |
412+ return ($.endsWith("ByRef")) ? $.replace("_", "Ref_") : $
413+ - where :
414+ subject : ^(\w*[a-z])Ref([A-Z]\w*)$
415+ set :
416+ subject : $1$2ByRef
416417# Remove *ByRef commands
417418 - where :
418419 verb : Get|Remove|New
You can’t perform that action at this time.
0 commit comments