Skip to content

Commit 68a8e3e

Browse files
authored
Fix documentation to match schema
Including "binddata" and "version" in a Site Script caused it to fail. Changing the schema reference at the top allowed VSCode to highlight the error, indicating that those aren't allowed. Removing them resolved the issue. Seems the schema is being 'more-enforced' in SPO now more than in the past.
1 parent f1eb0df commit 68a8e3e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docs/declarative-customization/get-started-create-site-design.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Each action is specified by the "verb" value in the JSON script. Also, actions c
2424
```powershell
2525
$site_script = '
2626
{
27-
"$schema": "schema.json",
27+
"$schema": "https://developer.microsoft.com/json-schemas/sp/site-design-script-actions.schema.json",
2828
"actions": [
2929
{
3030
"verb": "createSPList",
@@ -64,9 +64,7 @@ Each action is specified by the "verb" value in the JSON script. Also, actions c
6464
}
6565
]
6666
}
67-
],
68-
"bindata": { },
69-
"version": 1
67+
]
7068
}
7169
'
7270
```

0 commit comments

Comments
 (0)