Skip to content

Commit cec346c

Browse files
committed
Revert ByRef to old syntax.
1 parent 0254074 commit cec346c

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

src/readme.graph.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)