Skip to content

Commit

Permalink
fix(schema): update schema to remove warning around seedMetadata (dxa…
Browse files Browse the repository at this point in the history
…tscale#1400)

Adds seedMetadata to the supported feature list

fixes dxatscale#1349
  • Loading branch information
azlam-abdulsalam authored Sep 3, 2023
1 parent 438f9ba commit f686074
Showing 1 changed file with 127 additions and 49 deletions.
176 changes: 127 additions & 49 deletions packages/sfpowerscripts-cli/resources/schemas/sfdx-project.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"description": "The properties and shape of the SFDX project enhanced for sfpowerscripts",
"type": "object",
"additionalProperties": true,
"required": ["packageDirectories"],
"required": [
"packageDirectories"
],
"properties": {
"$schema": {
"description": "Support editors like vscode to help with IntelliSense",
Expand All @@ -21,21 +23,63 @@
"items": {
"type": "object",
"dependencies": {
"ancestorId": ["package", "versionNumber"],
"ancestorVersion": ["package", "versionNumber"],
"apexTestAccess": ["package", "versionNumber"],
"definitionFile": ["package", "versionNumber"],
"dependencies": ["package", "versionNumber"],
"package": ["versionNumber"],
"postInstallUrl": ["package", "versionNumber"],
"unpackagedMetadata": ["package", "versionNumber"],
"releaseNotesUrl": ["package", "versionNumber"],
"versionDescription": ["package", "versionNumber"],
"versionName": ["package", "versionNumber"],
"versionNumber": ["package"],
"branch": ["package"]
"ancestorId": [
"package",
"versionNumber"
],
"ancestorVersion": [
"package",
"versionNumber"
],
"apexTestAccess": [
"package",
"versionNumber"
],
"definitionFile": [
"package",
"versionNumber"
],
"dependencies": [
"package",
"versionNumber"
],
"package": [
"versionNumber"
],
"postInstallUrl": [
"package",
"versionNumber"
],
"unpackagedMetadata": [
"package",
"versionNumber"
],
"releaseNotesUrl": [
"package",
"versionNumber"
],
"seedMetadata": [
"package",
"versionNumber"
],
"versionDescription": [
"package",
"versionNumber"
],
"versionName": [
"package",
"versionNumber"
],
"versionNumber": [
"package"
],
"branch": [
"package"
]
},
"required": ["path"],
"required": [
"path"
],
"additionalProperties": false,
"properties": {
"ancestorId": {
Expand Down Expand Up @@ -70,10 +114,13 @@
},
"unpackagedMetadata": {
"$ref": "#/definitions/packageDirectory.unpackagedMetadata"
} ,
},
"releaseNotesUrl": {
"$ref": "#/definitions/packageDirectory.releaseNotesUrl"
},
"seedMetadata": {
"$ref": "#/definitions/packageDirectory.seedMetadata"
},
"versionDescription": {
"$ref": "#/definitions/packageDirectory.versionDescription"
},
Expand Down Expand Up @@ -122,7 +169,7 @@
"skipCoverageValidation": {
"$ref": "#/definitions/packageDirectory.skipCoverageValidation"
},
"tags":{
"tags": {
"$ref": "#/definitions/packageDirectory.tags"
},
"testSynchronous": {
Expand All @@ -146,7 +193,6 @@
"branch": {
"$ref": "#/definitions/packageDirectory.branch"
}

}
}
},
Expand Down Expand Up @@ -248,7 +294,9 @@
"description": "To specify dependencies for 2GP within the same Dev Hub, use either the package version alias or a combination of the package name and the version number.",
"items": {
"type": "object",
"required": ["package"],
"required": [
"package"
],
"properties": {
"package": {
"type": "string"
Expand Down Expand Up @@ -282,19 +330,36 @@
"title": "Post Install Url",
"description": "The post install url."
},
"packageDirectory.unpackagedMetadata": {
"packageDirectory.seedMetadata": {
"type": "object",
"title": "Unpackaged Metadata",
"description": "Metadata not meant to be packaged, but deployed when testing packaged metadata",
"required": ["path"],
"title": "Seed Metadata",
"description": "Metadata not meant to be packaged, but deployed before deploying packaged metadata",
"required": [
"path"
],
"properties": {
"path": {
"type": "string",
"title": "Path",
"description": "The path name of the package directory containing the unpackaged metadata"
"description": "The path name of the package directory containing the seed metadata"
}
}
},
"packageDirectory.unpackagedMetadata": {
"type": "object",
"title": "Unpackaged Metadata",
"description": "Metadata not meant to be packaged, but deployed when testing packaged metadata",
"required": [
"path"
],
"properties": {
"path": {
"type": "string",
"title": "Path",
"description": "The path name of the package directory containing the unpackaged metadata"
}
}
},
"packageDirectory.includeProfileUserLicenses": {
"type": "boolean",
"title": "Include Profile User Licenses",
Expand Down Expand Up @@ -399,7 +464,14 @@
"description": "Ignore this package on any provided stage",
"items": {
"type": "string",
"enum": ["prepare", "build", "deploy", "validate", "release", "quickbuild"]
"enum": [
"prepare",
"build",
"deploy",
"validate",
"release",
"quickbuild"
]
}
},
"packageDirectory.postDeploymentScript": {
Expand All @@ -420,7 +492,12 @@
"packageDirectory.type": {
"type": "string",
"title": "Type of the Package",
"enum": ["unlocked", "source", "data","diff"],
"enum": [
"unlocked",
"source",
"data",
"diff"
],
"description": "Denotes the type of the package, accepted values are \"source\",\"data\",\"unlocked\" and \"diff\""
},
"packageDirectory.skipCoverageValidation": {
Expand Down Expand Up @@ -462,19 +539,19 @@
},
"packageDirectory.enableFHT": {
"type": "boolean",
"default" : true,
"default": true,
"title": "Enable Field History Tracking support?",
"description": "Enable automated update of field history tracking in the target org upon deployment"
},
"packageDirectory.enableFT": {
"type": "boolean",
"default" : true,
"default": true,
"title": "Enable Feed Tracking support?",
"description": "Enable automated update of feed tracking in the target org upon deployment"
},
"packageDirectory.enablePicklist": {
"type": "boolean",
"default":true,
"default": true,
"title": "Enable Picklist patching for Unlocked Packages",
"description": "Enable automated patching of picklist for unlocked packages as unlocked packages ignore changes"
},
Expand Down Expand Up @@ -548,29 +625,30 @@
},
"externalDependencyMap": {
"title": "Map of external package and its dependencies",
"type":"object",
"type": "object",
"description": "Use this map to define dependencies of unlocked packages built elsewhere, This information will be used by sfpowerscripts while expanding package dependencies",
"patternProperties": {
".*": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": ["package"],
"properties": {
"package": {
"type": "string"
},
"versionNumber": {
"type": "string"
}
}

}
}
"patternProperties": {
".*": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"package"
],
"properties": {
"package": {
"type": "string"
},
"versionNumber": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}

0 comments on commit f686074

Please sign in to comment.