Skip to content

Commit

Permalink
[MSGraph] Remove special char (#25811)
Browse files Browse the repository at this point in the history
* remove special char

* Add comments
  • Loading branch information
NoriZC authored Aug 15, 2024
1 parent 8cb555b commit c1ca933
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
13 changes: 13 additions & 0 deletions src/Resources/MSGraph.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,4 +335,17 @@ directive:
- DisplayName
- Id
- OdataType

# Characters '×','’','–' existed in swagger with larger character code than 127. They are blocking signing process, hence replace them with '*',''','-'
- from: openapi-document
where: $
transform: $ = $.replace(/×/g, '\*');

- from: openapi-document
where: $
transform: $ = $.replace(/’/g, '\'');

- from: openapi-document
where: $
transform: $ = $.replace(/–/g, '\-');
```
2 changes: 1 addition & 1 deletion src/Resources/MSGraph.Autorest/custom/New-AzADUser.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')]
[System.Management.Automation.SwitchParameter]
# Do not use reserved for future use.
# Do not use - reserved for future use.
${IsResourceAccount},

[Parameter()]
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/MSGraph.Autorest/custom/Update-AzADUser.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ PASSWORDPROFILE <IMicrosoftGraphPasswordProfile>: passwordProfile
[(Any) <Object>]: This indicates any property can be added to this object.
[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.
[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.
[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.
[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.
.Link
https://learn.microsoft.com/powershell/module/az.resources/update-azaduser
#>
Expand Down Expand Up @@ -218,7 +218,7 @@ function Update-AzADUser {
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.Resources.MSGraph.Category('Body')]
[System.Management.Automation.SwitchParameter]
# Do not use reserved for future use.
# Do not use - reserved for future use.
${IsResourceAccount},

[Parameter()]
Expand Down

0 comments on commit c1ca933

Please sign in to comment.