Skip to content

Commit f686074

Browse files
authoredSep 3, 2023
fix(schema): update schema to remove warning around seedMetadata (dxatscale#1400)
Adds seedMetadata to the supported feature list fixes dxatscale#1349

File tree

1 file changed

+127
-49
lines changed

1 file changed

+127
-49
lines changed
 

‎packages/sfpowerscripts-cli/resources/schemas/sfdx-project.schema.json

+127-49
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"description": "The properties and shape of the SFDX project enhanced for sfpowerscripts",
66
"type": "object",
77
"additionalProperties": true,
8-
"required": ["packageDirectories"],
8+
"required": [
9+
"packageDirectories"
10+
],
911
"properties": {
1012
"$schema": {
1113
"description": "Support editors like vscode to help with IntelliSense",
@@ -21,21 +23,63 @@
2123
"items": {
2224
"type": "object",
2325
"dependencies": {
24-
"ancestorId": ["package", "versionNumber"],
25-
"ancestorVersion": ["package", "versionNumber"],
26-
"apexTestAccess": ["package", "versionNumber"],
27-
"definitionFile": ["package", "versionNumber"],
28-
"dependencies": ["package", "versionNumber"],
29-
"package": ["versionNumber"],
30-
"postInstallUrl": ["package", "versionNumber"],
31-
"unpackagedMetadata": ["package", "versionNumber"],
32-
"releaseNotesUrl": ["package", "versionNumber"],
33-
"versionDescription": ["package", "versionNumber"],
34-
"versionName": ["package", "versionNumber"],
35-
"versionNumber": ["package"],
36-
"branch": ["package"]
26+
"ancestorId": [
27+
"package",
28+
"versionNumber"
29+
],
30+
"ancestorVersion": [
31+
"package",
32+
"versionNumber"
33+
],
34+
"apexTestAccess": [
35+
"package",
36+
"versionNumber"
37+
],
38+
"definitionFile": [
39+
"package",
40+
"versionNumber"
41+
],
42+
"dependencies": [
43+
"package",
44+
"versionNumber"
45+
],
46+
"package": [
47+
"versionNumber"
48+
],
49+
"postInstallUrl": [
50+
"package",
51+
"versionNumber"
52+
],
53+
"unpackagedMetadata": [
54+
"package",
55+
"versionNumber"
56+
],
57+
"releaseNotesUrl": [
58+
"package",
59+
"versionNumber"
60+
],
61+
"seedMetadata": [
62+
"package",
63+
"versionNumber"
64+
],
65+
"versionDescription": [
66+
"package",
67+
"versionNumber"
68+
],
69+
"versionName": [
70+
"package",
71+
"versionNumber"
72+
],
73+
"versionNumber": [
74+
"package"
75+
],
76+
"branch": [
77+
"package"
78+
]
3779
},
38-
"required": ["path"],
80+
"required": [
81+
"path"
82+
],
3983
"additionalProperties": false,
4084
"properties": {
4185
"ancestorId": {
@@ -70,10 +114,13 @@
70114
},
71115
"unpackagedMetadata": {
72116
"$ref": "#/definitions/packageDirectory.unpackagedMetadata"
73-
} ,
117+
},
74118
"releaseNotesUrl": {
75119
"$ref": "#/definitions/packageDirectory.releaseNotesUrl"
76120
},
121+
"seedMetadata": {
122+
"$ref": "#/definitions/packageDirectory.seedMetadata"
123+
},
77124
"versionDescription": {
78125
"$ref": "#/definitions/packageDirectory.versionDescription"
79126
},
@@ -122,7 +169,7 @@
122169
"skipCoverageValidation": {
123170
"$ref": "#/definitions/packageDirectory.skipCoverageValidation"
124171
},
125-
"tags":{
172+
"tags": {
126173
"$ref": "#/definitions/packageDirectory.tags"
127174
},
128175
"testSynchronous": {
@@ -146,7 +193,6 @@
146193
"branch": {
147194
"$ref": "#/definitions/packageDirectory.branch"
148195
}
149-
150196
}
151197
}
152198
},
@@ -248,7 +294,9 @@
248294
"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.",
249295
"items": {
250296
"type": "object",
251-
"required": ["package"],
297+
"required": [
298+
"package"
299+
],
252300
"properties": {
253301
"package": {
254302
"type": "string"
@@ -282,19 +330,36 @@
282330
"title": "Post Install Url",
283331
"description": "The post install url."
284332
},
285-
"packageDirectory.unpackagedMetadata": {
333+
"packageDirectory.seedMetadata": {
286334
"type": "object",
287-
"title": "Unpackaged Metadata",
288-
"description": "Metadata not meant to be packaged, but deployed when testing packaged metadata",
289-
"required": ["path"],
335+
"title": "Seed Metadata",
336+
"description": "Metadata not meant to be packaged, but deployed before deploying packaged metadata",
337+
"required": [
338+
"path"
339+
],
290340
"properties": {
291341
"path": {
292342
"type": "string",
293343
"title": "Path",
294-
"description": "The path name of the package directory containing the unpackaged metadata"
344+
"description": "The path name of the package directory containing the seed metadata"
295345
}
296346
}
297347
},
348+
"packageDirectory.unpackagedMetadata": {
349+
"type": "object",
350+
"title": "Unpackaged Metadata",
351+
"description": "Metadata not meant to be packaged, but deployed when testing packaged metadata",
352+
"required": [
353+
"path"
354+
],
355+
"properties": {
356+
"path": {
357+
"type": "string",
358+
"title": "Path",
359+
"description": "The path name of the package directory containing the unpackaged metadata"
360+
}
361+
}
362+
},
298363
"packageDirectory.includeProfileUserLicenses": {
299364
"type": "boolean",
300365
"title": "Include Profile User Licenses",
@@ -399,7 +464,14 @@
399464
"description": "Ignore this package on any provided stage",
400465
"items": {
401466
"type": "string",
402-
"enum": ["prepare", "build", "deploy", "validate", "release", "quickbuild"]
467+
"enum": [
468+
"prepare",
469+
"build",
470+
"deploy",
471+
"validate",
472+
"release",
473+
"quickbuild"
474+
]
403475
}
404476
},
405477
"packageDirectory.postDeploymentScript": {
@@ -420,7 +492,12 @@
420492
"packageDirectory.type": {
421493
"type": "string",
422494
"title": "Type of the Package",
423-
"enum": ["unlocked", "source", "data","diff"],
495+
"enum": [
496+
"unlocked",
497+
"source",
498+
"data",
499+
"diff"
500+
],
424501
"description": "Denotes the type of the package, accepted values are \"source\",\"data\",\"unlocked\" and \"diff\""
425502
},
426503
"packageDirectory.skipCoverageValidation": {
@@ -462,19 +539,19 @@
462539
},
463540
"packageDirectory.enableFHT": {
464541
"type": "boolean",
465-
"default" : true,
542+
"default": true,
466543
"title": "Enable Field History Tracking support?",
467544
"description": "Enable automated update of field history tracking in the target org upon deployment"
468545
},
469546
"packageDirectory.enableFT": {
470547
"type": "boolean",
471-
"default" : true,
548+
"default": true,
472549
"title": "Enable Feed Tracking support?",
473550
"description": "Enable automated update of feed tracking in the target org upon deployment"
474551
},
475552
"packageDirectory.enablePicklist": {
476553
"type": "boolean",
477-
"default":true,
554+
"default": true,
478555
"title": "Enable Picklist patching for Unlocked Packages",
479556
"description": "Enable automated patching of picklist for unlocked packages as unlocked packages ignore changes"
480557
},
@@ -548,29 +625,30 @@
548625
},
549626
"externalDependencyMap": {
550627
"title": "Map of external package and its dependencies",
551-
"type":"object",
628+
"type": "object",
552629
"description": "Use this map to define dependencies of unlocked packages built elsewhere, This information will be used by sfpowerscripts while expanding package dependencies",
553-
"patternProperties": {
554-
".*": {
555-
"type": "array",
556-
"items": {
557-
"type": "object",
558-
"additionalProperties": false,
559-
"required": ["package"],
560-
"properties": {
561-
"package": {
562-
"type": "string"
563-
},
564-
"versionNumber": {
565-
"type": "string"
566-
}
567-
}
568-
569-
}
570-
}
630+
"patternProperties": {
631+
".*": {
632+
"type": "array",
633+
"items": {
634+
"type": "object",
635+
"additionalProperties": false,
636+
"required": [
637+
"package"
638+
],
639+
"properties": {
640+
"package": {
641+
"type": "string"
642+
},
643+
"versionNumber": {
644+
"type": "string"
645+
}
646+
}
647+
}
648+
}
571649
}
572650
}
573651
}
574652
}
575653
}
576-
}
654+
}

0 commit comments

Comments
 (0)
Please sign in to comment.