Skip to content

Commit dc6c82d

Browse files
committed
SharePoint model updated to 16.0.21729.12001 version, model generator fixes
1 parent 13116a1 commit dc6c82d

32 files changed

+402
-26
lines changed

generator/GenerateModel.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Office365\Generator\Documentation\MSGraphDocsService;
88
use Office365\Generator\Documentation\SharePointSpecsService;
99
use Office365\Runtime\Auth\UserCredentials;
10+
use Office365\Runtime\Http\RequestException;
1011
use Office365\Runtime\OData\MetadataResolver;
1112
use Office365\Runtime\OData\ODataModel;
1213
use Office365\Runtime\OData\V3\ODataV3Reader;
@@ -81,7 +82,11 @@ function generateSharePointModel()
8182
{
8283
syncSharePointMetadataFile('./Settings.SharePoint.json');
8384
$options = loadSettingsFromFile('./Settings.SharePoint.json');
84-
$options['docs'] = new SharePointSpecsService($options['docsRoot']);
85+
try {
86+
$options['docs'] = new SharePointSpecsService($options['docsRoot']);
87+
} catch (RequestException $e) {
88+
//ignore
89+
}
8590
$reader = new ODataV3Reader();
8691
$model = $reader->generateModel($options);
8792
generateFiles($model);

generator/Settings.SharePoint.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
{
2-
"metadataPath": ".\/metadata\/SharePoint.xml",
3-
"outputPath": "..\/src\/SharePoint",
4-
"templatePath": ".\/templates\/sharepoint\/",
2+
"metadataPath": "./metadata/SharePoint.xml",
3+
"outputPath": "../src/SharePoint",
4+
"templatePath": "./templates/sharepoint/",
55
"includeDocAnnotations": true,
66
"docsRoot": "https:\/\/docs.microsoft.com\/en-us\/openspecs\/sharepoint_protocols\/ms-csomspt\/",
77
"rootNamespace": "Office365\\SharePoint",
88
"entityRootNamespace": "SP",
9-
"version": "16.0.21221.12006",
10-
"timestamp": "2021-05-05T14:47:20+00:00",
9+
"version": "16.0.21729.12001",
10+
"timestamp": "2021-10-09T12:03:32+03:00",
1111
"placeholder": "This file was generated by phpSPO model generator",
1212
"typeMappings": {
1313
"SP.List": "SP.SPList",
1414
"SP.ResourcePath": "SP.SPResourcePath"
1515
},
1616
"ignoredTypes": [
17+
"SP.KeyValue",
1718
"SP.SimpleDataRow",
1819
"SP.SimpleDataTable",
1920
"SP.MethodInformation",

generator/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
],
88
"autoload": {
99
"psr-4": {
10-
"Office365\\Generator\\": "./generator/",
11-
"Office365\\": "../src/"
10+
"Office365\\": ["../src/"],
11+
"Office365\\Generator\\": ["../generator/"]
1212
}
1313
},
1414
"name": "vgrem/php-office365-sdk-generator",

0 commit comments

Comments
 (0)