Skip to content

Commit 5f2fac8

Browse files
committed
Add WebTemplate to Web model
1 parent bf2bf66 commit 5f2fac8

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "graph.community.metadata",
3-
"version": "5.7.0",
3+
"version": "5.7.1",
44
"type": "module",
55
"scripts": {
66
"compile": "tsp compile src/main.tsp",
77
"watch": "tsp compile src/main.tsp --watch",
8-
"buildDocs": "tsp compile src/main.tsp && .\fixOpenApi.ps1"
8+
"buildDocs": "tsp compile src/main.tsp && ./fixOpenApi.ps1"
99
},
1010
"peerDependencies": {
1111
"@typespec/compiler": "latest",

src/main.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ import "./controllers/web.tsp";
1616
using TypeSpec.Http;
1717
using TypeSpec.OpenAPI;
1818

19+
@OpenAPI.info({version: "5.7.1"})
1920
@service({
2021
title: "Graph.Community SDK for Microsoft SharePoint REST API",
21-
version: "5.7.0",
2222
})
2323
@tagMetadata(
2424
"Site Design/Site Script",

src/models/web.tsp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ model SPWeb {
2020
Title: string;
2121

2222
/**
23-
* Represents the unique sequential location of a change within the change log.
23+
* The change token that is used when the next change is logged to the website.
2424
*/
2525
CurrentChangeToken?:ChangeToken;
2626

@@ -40,6 +40,11 @@ model SPWeb {
4040

4141
AssociatedVisitorGroup?: SPGroup;
4242

43+
/**
44+
* The name of the site definition or site template that was used to create the site.
45+
*/
46+
WebTemplate: string;
47+
4348
WelcomePage: string;
4449

4550
RegionalSettings?: RegionalSettings;

0 commit comments

Comments
 (0)