Skip to content

Commit

Permalink
Update sfdx-project.json schema to allow properties for permissionset…
Browse files Browse the repository at this point in the history
… and permissionsetlicense assignment for package metadata (#83)

* add PS/PSL for package metadata properties to sfdx-project.json schema

* feat: add PS/PSL for package metadata properties to sfdx-project.json schema

* feat: add schema property ref for packageMetadataAccess

* feat: add schema property ref for packageMetadataAccess

---------

Co-authored-by: Kevin Cripps <kcripps@salesforce.com>
  • Loading branch information
shetzel and KSCCO authored Mar 11, 2024
1 parent 89c8c11 commit a1db98d
Showing 1 changed file with 59 additions and 3 deletions.
62 changes: 59 additions & 3 deletions sfdx-project.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
"package",
"versionNumber"
],
"packageMetadataAccess": [
"package",
"versionNumber"
],
"definitionFile": [
"package",
"versionNumber"
Expand Down Expand Up @@ -95,6 +99,9 @@
"apexTestAccess": {
"$ref": "#/definitions/packageDirectory.apexTestAccess"
},
"packageMetadataAccess": {
"$ref": "#/definitions/packageDirectory.packageMetadataAccess"
},
"default": {
"$ref": "#/definitions/packageDirectory.default"
},
Expand Down Expand Up @@ -683,12 +690,12 @@
{
"type": "string",
"title": "Permission Set String",
"description": "The list of permission set to enable while running Apex tests as a string"
"description": "The list of permission sets to enable while running Apex tests as a string"
},
{
"type": "array",
"title": "Permission Set Array",
"description": "The list of permission set to enable while running Apex tests as an array",
"description": "The list of permission sets to enable while running Apex tests as an array",
"items": {
"type": "string",
"title": "Permission Set Name",
Expand Down Expand Up @@ -720,6 +727,55 @@
}
}
},
"packageDirectory.packageMetadataAccess": {
"type": "object",
"title": "Package Metadata Access",
"description": "Additional access that should be granted to the user while deploying package metadata, available in Salesforce API version 61.0 and above",
"properties": {
"permissionSets": {
"title": "Permission Sets",
"description": "The list of permission sets to enable while deploying package metadata",
"oneOf": [
{
"type": "string",
"title": "Permission Set String",
"description": "The list of permission sets to enable while deploying package metadata as a string"
},
{
"type": "array",
"title": "Permission Set Array",
"description": "The list of permission sets to enable while deploying package metadata as an array",
"items": {
"type": "string",
"title": "Permission Set Name",
"description": "Name of the permission set to enable while deploying package metadata"
}
}
]
},
"permissionSetLicenses": {
"title": "Permission Set License",
"description": "The list of permission sets licenses to enable while deploying package metadata",
"oneOf": [
{
"type": "string",
"title": "Permission Set Licenses String",
"description": "The list of permission set licenses to enable while deploying package metadata as a string"
},
{
"type": "array",
"title": "Permission Set Licenses Array",
"description": "The list of permission set licenses to enable while deploying package metadata as an array",
"items": {
"type": "string",
"title": "Permission Set Licenses Developer Name",
"description": "Name of the permission set license to enable while deploying package metadata"
}
}
]
}
}
},
"packageDirectory.branch": {
"type": "string",
"title": "Branch",
Expand Down Expand Up @@ -750,4 +806,4 @@
"description": "Use the contents of this file to replace the target"
}
}
}
}

0 comments on commit a1db98d

Please sign in to comment.