Skip to content

Commit c1ca933

Browse files
authored
[MSGraph] Remove special char (#25811)
* remove special char * Add comments
1 parent 8cb555b commit c1ca933

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

src/Resources/MSGraph.Autorest/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,4 +335,17 @@ directive:
335335
- DisplayName
336336
- Id
337337
- OdataType
338+
339+
# Characters '×','’','–' existed in swagger with larger character code than 127. They are blocking signing process, hence replace them with '*',''','-'
340+
- from: openapi-document
341+
where: $
342+
transform: $ = $.replace(/×/g, '\*');
343+
344+
- from: openapi-document
345+
where: $
346+
transform: $ = $.replace(/’/g, '\'');
347+
348+
- from: openapi-document
349+
where: $
350+
transform: $ = $.replace(/–/g, '\-');
338351
```

src/Resources/MSGraph.Autorest/custom/New-AzADUser.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ param(
194194
[Parameter()]
195195
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')]
196196
[System.Management.Automation.SwitchParameter]
197-
# Do not use reserved for future use.
197+
# Do not use - reserved for future use.
198198
${IsResourceAccount},
199199

200200
[Parameter()]

src/Resources/MSGraph.Autorest/custom/Update-AzADUser.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ PASSWORDPROFILE <IMicrosoftGraphPasswordProfile>: passwordProfile
3636
[(Any) <Object>]: This indicates any property can be added to this object.
3737
[ForceChangePasswordNextSignIn <Boolean?>]: true if the user must change her password on the next login; otherwise false. If not set, default is false. NOTE: For Azure B2C tenants, set to false and instead use custom policies and user flows to force password reset at first sign in. See Force password reset at first logon.
3838
[ForceChangePasswordNextSignInWithMfa <Boolean?>]: If true, at next sign-in, the user must perform a multi-factor authentication (MFA) before being forced to change their password. The behavior is identical to forceChangePasswordNextSignIn except that the user is required to first perform a multi-factor authentication before password change. After a password change, this property will be automatically reset to false. If not set, default is false.
39-
[Password <String>]: The password for the user. This property is required when a user is created. It can be updated, but the user will be required to change the password on the next login. The password must satisfy minimum requirements as specified by the users passwordPolicies property. By default, a strong password is required.
39+
[Password <String>]: The password for the user. This property is required when a user is created. It can be updated, but the user will be required to change the password on the next login. The password must satisfy minimum requirements as specified by the user's passwordPolicies property. By default, a strong password is required.
4040
.Link
4141
https://learn.microsoft.com/powershell/module/az.resources/update-azaduser
4242
#>
@@ -218,7 +218,7 @@ function Update-AzADUser {
218218
[Parameter()]
219219
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')]
220220
[System.Management.Automation.SwitchParameter]
221-
# Do not use reserved for future use.
221+
# Do not use - reserved for future use.
222222
${IsResourceAccount},
223223

224224
[Parameter()]

0 commit comments

Comments
 (0)