Skip to content

Commit

Permalink
fix(oauth2-api): Set default value for Outlook OAuth2 cloud property …
Browse files Browse the repository at this point in the history
…when creating a new OAuth2 app via API
  • Loading branch information
andris9 committed Sep 6, 2024
1 parent 9669e40 commit d4e1993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/schemas.js
Original file line number Diff line number Diff line change
Expand Up @@ -1309,7 +1309,7 @@ const oauthCreateSchema = {
.empty('')
.when('provider', {
is: 'outlook',
then: Joi.required().valid('global', 'gcc-high', 'dod', 'china'),
then: Joi.required().valid('global', 'gcc-high', 'dod', 'china').default('global'),
otherwise: Joi.optional().valid(false, null)
})
.example('global')
Expand Down

0 comments on commit d4e1993

Please sign in to comment.