Skip to content

Commit 0ddb0bb

Browse files
Work to fix wrong json formatting (#282)
1 parent 373dcb2 commit 0ddb0bb

6 files changed

Lines changed: 36 additions & 20 deletions

File tree

generated/microsoftgraph/microsoft.graph/beta/1.1.0-preview/types.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
./[
1+
[
22
{
33
"$type": "StringType"
44
},
@@ -653,7 +653,7 @@
653653
"$ref": "#/40"
654654
},
655655
"flags": 0,
656-
"description": "Also known as App ID URI, this value is set when an application is used as a resource app. The identifierUris acts as the prefix for the scopes you reference in your API's code, and it must be globally unique. You can use the default value provided, which is in the form api:/<appId>, or specify a more readable URI like https:/contoso.com/api. For more information on valid identifierUris patterns and best practices, see Microsoft Entra application registration security best practices. Not nullable."
656+
"description": "Also known as App ID URI, this value is set when an application is used as a resource app. The identifierUris acts as the prefix for the scopes you reference in your API's code, and it must be globally unique. You can use the default value provided, which is in the form api://<appId>, or specify a more readable URI like https://contoso.com/api. For more information on valid identifierUris patterns and best practices, see Microsoft Entra application registration security best practices. Not nullable."
657657
},
658658
"info": {
659659
"type": {
@@ -1166,28 +1166,28 @@
11661166
"$ref": "#/0"
11671167
},
11681168
"flags": 0,
1169-
"description": "Link to the application's marketing page. For example, https:/www.contoso.com/app/marketing."
1169+
"description": "Link to the application's marketing page. For example, https://www.contoso.com/app/marketing."
11701170
},
11711171
"privacyStatementUrl": {
11721172
"type": {
11731173
"$ref": "#/0"
11741174
},
11751175
"flags": 0,
1176-
"description": "Link to the application's privacy statement. For example, https:/www.contoso.com/app/privacy."
1176+
"description": "Link to the application's privacy statement. For example, https://www.contoso.com/app/privacy."
11771177
},
11781178
"supportUrl": {
11791179
"type": {
11801180
"$ref": "#/0"
11811181
},
11821182
"flags": 0,
1183-
"description": "Link to the application's support page. For example, https:/www.contoso.com/app/support."
1183+
"description": "Link to the application's support page. For example, https://www.contoso.com/app/support."
11841184
},
11851185
"termsOfServiceUrl": {
11861186
"type": {
11871187
"$ref": "#/0"
11881188
},
11891189
"flags": 0,
1190-
"description": "Link to the application's terms of service statement. For example, https:/www.contoso.com/app/termsofservice."
1190+
"description": "Link to the application's terms of service statement. For example, https://www.contoso.com/app/termsofservice."
11911191
}
11921192
}
11931193
},
@@ -1455,7 +1455,7 @@
14551455
"$ref": "#/58"
14561456
},
14571457
"flags": 0,
1458-
"description": "Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent. For iOS and macOS apps, specify the value following the syntax msauth.{BUNDLEID}:/auth, replacing '{BUNDLEID}'. For example, if the bundle ID is com.microsoft.identitysample.MSALiOS, the URI is msauth.com.microsoft.identitysample.MSALiOS:/auth."
1458+
"description": "Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent. For iOS and macOS apps, specify the value following the syntax msauth.{BUNDLEID}://auth, replacing '{BUNDLEID}'. For example, if the bundle ID is com.microsoft.identitysample.MSALiOS, the URI is msauth.com.microsoft.identitysample.MSALiOS://auth."
14591459
}
14601460
}
14611461
},
@@ -2239,7 +2239,7 @@
22392239
"$ref": "#/100"
22402240
},
22412241
"flags": 1,
2242-
"description": "The audience that can appear in the external token. This field is mandatory and should be set to api:/AzureADTokenExchange for Microsoft Entra ID. It says what Microsoft identity platform should accept in the aud claim in the incoming token. This value represents Microsoft Entra ID in your external identity provider and has no fixed value across identity providers - you may need to create a new application registration in your identity provider to serve as the audience of this token. This field can only accept a single value and has a limit of 600 characters. Required."
2242+
"description": "The audience that can appear in the external token. This field is mandatory and should be set to api://AzureADTokenExchange for Microsoft Entra ID. It says what Microsoft identity platform should accept in the aud claim in the incoming token. This value represents Microsoft Entra ID in your external identity provider and has no fixed value across identity providers - you may need to create a new application registration in your identity provider to serve as the audience of this token. This field can only accept a single value and has a limit of 600 characters. Required."
22432243
},
22442244
"claimsMatchingExpression": {
22452245
"type": {

generated/microsoftgraph/microsoft.graph/v1.0/1.1.0-preview/types.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
./[
1+
[
22
{
33
"$type": "StringType"
44
},
@@ -1166,28 +1166,28 @@
11661166
"$ref": "#/0"
11671167
},
11681168
"flags": 0,
1169-
"description": "Link to the application's marketing page. For example, https:/www.contoso.com/app/marketing."
1169+
"description": "Link to the application's marketing page. For example, https://www.contoso.com/app/marketing."
11701170
},
11711171
"privacyStatementUrl": {
11721172
"type": {
11731173
"$ref": "#/0"
11741174
},
11751175
"flags": 0,
1176-
"description": "Link to the application's privacy statement. For example, https:/www.contoso.com/app/privacy."
1176+
"description": "Link to the application's privacy statement. For example, https://www.contoso.com/app/privacy."
11771177
},
11781178
"supportUrl": {
11791179
"type": {
11801180
"$ref": "#/0"
11811181
},
11821182
"flags": 0,
1183-
"description": "Link to the application's support page. For example, https:/www.contoso.com/app/support."
1183+
"description": "Link to the application's support page. For example, https://www.contoso.com/app/support."
11841184
},
11851185
"termsOfServiceUrl": {
11861186
"type": {
11871187
"$ref": "#/0"
11881188
},
11891189
"flags": 0,
1190-
"description": "Link to the application's terms of service statement. For example, https:/www.contoso.com/app/termsofservice."
1190+
"description": "Link to the application's terms of service statement. For example, https://www.contoso.com/app/termsofservice."
11911191
}
11921192
}
11931193
},
@@ -1455,7 +1455,7 @@
14551455
"$ref": "#/57"
14561456
},
14571457
"flags": 0,
1458-
"description": "Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent. For iOS and macOS apps, specify the value following the syntax msauth.{BUNDLEID}:/auth, replacing '{BUNDLEID}'. For example, if the bundle ID is com.microsoft.identitysample.MSALiOS, the URI is msauth.com.microsoft.identitysample.MSALiOS:/auth."
1458+
"description": "Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent. For iOS and macOS apps, specify the value following the syntax msauth.{BUNDLEID}://auth, replacing '{BUNDLEID}'. For example, if the bundle ID is com.microsoft.identitysample.MSALiOS, the URI is msauth.com.microsoft.identitysample.MSALiOS://auth."
14591459
}
14601460
}
14611461
},
@@ -2194,7 +2194,7 @@
21942194
"$ref": "#/97"
21952195
},
21962196
"flags": 1,
2197-
"description": "The audience that can appear in the external token. This field is mandatory and should be set to api:/AzureADTokenExchange for Microsoft Entra ID. It says what Microsoft identity platform should accept in the aud claim in the incoming token. This value represents Microsoft Entra ID in your external identity provider and has no fixed value across identity providers - you might need to create a new application registration in your identity provider to serve as the audience of this token. This field can only accept a single value and has a limit of 600 characters. Required."
2197+
"description": "The audience that can appear in the external token. This field is mandatory and should be set to api://AzureADTokenExchange for Microsoft Entra ID. It says what Microsoft identity platform should accept in the aud claim in the incoming token. This value represents Microsoft Entra ID in your external identity provider and has no fixed value across identity providers - you might need to create a new application registration in your identity provider to serve as the audience of this token. This field can only accept a single value and has a limit of 600 characters. Required."
21982198
},
21992199
"description": {
22002200
"type": {

msgraph-metadata

Submodule msgraph-metadata updated 40 files

src/generator/src/cmd/generate.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,9 @@ async function buildTypeIndex(logger: ILogger, baseDir: string, apiVersion: ApiV
344344
};
345345
const indexContent = await buildIndex(typeFiles, (log) => logOut(logger, log), typeSettings);
346346

347-
await writeFile(`${extensionBaseDir}/types.json`, normalizeJsonPath(writeTypesJson(contentJson)));
348-
await writeFile(`${extensionBaseDir}/index.json`, normalizeJsonPath(writeIndexJson(indexContent)));
349-
await writeFile(`${extensionBaseDir}/index.md`, normalizeJsonPath(writeIndexMarkdown(indexContent)));
347+
await writeFile(`${extensionBaseDir}/types.json`, writeTypesJson(contentJson));
348+
await writeFile(`${extensionBaseDir}/index.json`, writeIndexJson(indexContent));
349+
await writeFile(`${extensionBaseDir}/index.md`, writeIndexMarkdown(indexContent));
350350
}
351351

352352
function shouldIncludeFilePath(filePath: string) {

src/swagger-generation/output/microsoftgraph-beta-1.1.0-preview.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@
367367
},
368368
"welcomeMessageEnabled": {
369369
"type": "boolean",
370-
"description": "",
370+
"description": "Indicates whether a welcome message is sent to new members when they are added to the group. The default value is true. Supported only on the Get group API (GET /groups/{ID}).",
371371
"readOnly": false
372372
},
373373
"writebackConfiguration": {

src/swagger-generation/output/microsoftgraph-v1.0-1.1.0-preview.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,22 @@
286286
"description": "Timestamp of when the group was last renewed. This value can't be modified directly and is only updated via the renew service action. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on January 1, 2014 is 2014-01-01T00:00:00Z. Read-only.",
287287
"readOnly": true
288288
},
289+
"resourceBehaviorOptions": {
290+
"type": "array",
291+
"items": {
292+
"type": "string"
293+
},
294+
"description": "Specifies the group behaviors that can be set for a Microsoft 365 group during creation. This property can be set only as part of creation (POST). For the list of possible values, see Microsoft 365 group behaviors and provisioning options.",
295+
"readOnly": false
296+
},
297+
"resourceProvisioningOptions": {
298+
"type": "array",
299+
"items": {
300+
"type": "string"
301+
},
302+
"description": "Specifies the group resources that are associated with the Microsoft 365 group. The possible value is Team. For more information, see Microsoft 365 group behaviors and provisioning options.",
303+
"readOnly": false
304+
},
289305
"securityEnabled": {
290306
"type": "boolean",
291307
"description": "Specifies whether the group is a security group. Required.",

0 commit comments

Comments
 (0)