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.
Additionally attributes in sfdx-project.json is blocked #1329
Describe the bug
The validation of the sfdx-project.json in sfpowerscripts blocks the extension from the sfdx-project.json. Sfpowerscripts should only validate json ranges that are managed by Sfpowerscript or just throw an warning. 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:dependency:shrink
Screenshots/Log
ERROR running sfpowerscripts:dependency:shrink : 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):
Hi @Schuchie Can you please update your sfpowerscripts version (20.20.3 > min 20.26.2). The additional property function was activated with version 20.26.2 in the february 26 release. Please test it and give a small feedback. Thx and Regards Ronny
Activity
petter-eikeland commentedon Jun 9, 2023
Agree!
I'm currently using the "tags" attribute to handle custom attribute needs 😄
Rocko1204 commentedon Jun 16, 2023
Hi @Schuchie Can you please update your sfpowerscripts version (20.20.3 > min 20.26.2). The additional property function was activated with version 20.26.2 in the february 26 release. Please test it and give a small feedback. Thx and Regards Ronny
Schuchie commentedon Jun 16, 2023
Hey @Rocko1204 ,
I think you're right. The validation isnt a problem anymore. Looks more like some fine tuning on my site with the command:
fix(schema): do not fail when new tags are observed in sfdx-project.json
fix(schema): do not fail when new tags are observed in sfdx-project.json