You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 18, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 18, 2024. It is now read-only.
Validation of sfdx-project.json blocks other extensions #1256
Describe the bug
The validation of sfpowerscripts blocks the extension from the sfdx-project.json. Sfpowerscripts should only validate json ranges that are managed by Sfpowerscript. Otherwise third party extensions will be blocked or prevented from adding properties e.g. to the packages.
To Reproduce
Steps to reproduce the behavior:
For example add a property to the one of the package, which is not included/supported by sfpowerscripts, but in another package:
Expected behavior
No error happens on running the command sfdx sfpowerscripts:orchestrator:validate
Screenshots/Log
ERROR running sfpowerscripts:orchestrator:validate: The sfdx-project.json is invalid, Please fix the following errors
1: /packageDirectories/4: must NOT have additional properties {
"additionalProperty": "testProperty"
}
Error: Process completed with exit code 1.
Platform Details (please complete the following information):
OS: Ubuntu
Version sfpowerscripts: sfpowerkit -- The DX@Scale Developer Toolkit - Version:5.0.0 - Release:August 22
Salesforce CLI(sfdx cli) Version: 7.186.2
CI Platform: GitHub Actions
Additional context
For features that are currently ported from sfpowerkit to sfpowerscripts and are not yet supported, a validation should be made explicitly on the respective properties (e.g. replacements).
Reason for blocking: sfpowerscripts/packages/sfpowerscripts-cli/resources/schemas/sfdx-project.schema.json:33
One way to implement the validation would be with the following:
changed the title [-]Validation of sfdx-project.json blocks other extension[/-][+]Validation of sfdx-project.json blocks other extensions[/+]on Mar 2, 2023
The validation is removed in February 23 release, future work will be scheduled for validation of properties used by sfpowerscripts or disabling features not suppoerted
Activity
[-]Validation of sfdx-project.json blocks other extension[/-][+]Validation of sfdx-project.json blocks other extensions[/+]azlam-abdulsalam commentedon Mar 3, 2023
The validation is removed in February 23 release, future work will be scheduled for validation of properties used by sfpowerscripts or disabling features not suppoerted
fix(schema): disable addtional property validation of sfdx-project.json
fix(schema): disable addtional property validation of sfdx-project.json