🐞SPFx - Update package-solution.json's schema to include optional properties for webApiPermissionRequests
#8363
Labels
Needs: Triage 🔍
Awaiting categorization and initial review.
type:bug-suspected
Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
No response
What browser(s) / client(s) have you tested
Additional environment details
Describe the bug / error
The schema for ./config/package-solution.json,
https://developer.microsoft.com/json-schemas/spfx-build/package-solution.schema.json
, is missing optional properties on objects in thewebApiPermissionRequests
array introduced in SPFx v1.15.2:appId
&replyUrl
.This means developers won't get IntelliSense with included docs when editing this file. In fact, the file will fail validation as it currently contains
additionalProperties: false
which will say the properties aren't allowed:Steps to reproduce
Create new project
Use any type of component when prompted
Open said project in VSCode
Open ./config/package-solution.json
Add the following code after the
developer
property:Developer curses at VSCode and 😭 in solitude... kittens rush for safety to avoid being kicked by said developer.
Expected behavior
Create new project
Use any type of component when prompted
Open said project in VSCode
Open ./config/package-solution.json
Add the following code after the
developer
property:Observe IntelliSense when modifying values under the included
webApiPermissionRequests
The Microsoft engineer who took the time to update this file, on their way home from work to enjoy a good streaming movie, when picking up their take-out tacos 🌮, comes to find out someone paid it forward as thanks and now they enjoy free 🌮 for their contribution to developers across the globe.
The text was updated successfully, but these errors were encountered: