forked from forcedotcom/schemas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsfdx-project.schema.json
305 lines (305 loc) · 12.5 KB
/
sfdx-project.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://schemas.salesforce.com/sfdx-project.json",
"title": "Salesforce DX Project File",
"description": "The properties and shape of the SFDX project",
"type": "object",
"additionalProperties": false,
"required": ["packageDirectories"],
"properties": {
"packageDirectories": {
"title": "Package Directories",
"type": "array",
"description": "Package directories indicate which directories to target when syncing source to and from the scratch org. These directories can contain source from your managed package, unmanaged package, or unpackaged source, for example, ant tool or change set.",
"$comment": "The properties ancestorId & ancestorVersion cannot be included together, but this schema optimizes for VS Code code completion rather than pure validation.",
"minItems": 1,
"items": {
"type": "object",
"dependencies": {
"ancestorId": ["package", "versionNumber"],
"ancestorVersion": ["package", "versionNumber"],
"apexTestAccess": ["package", "versionNumber"],
"definitionFile": ["package", "versionNumber"],
"dependencies": ["package", "versionNumber"],
"package": ["versionNumber"],
"postInstallScript": ["package", "versionNumber"],
"postInstallUrl": ["package", "versionNumber"],
"releaseNotesUrl": ["package", "versionNumber"],
"uninstallScript": ["package", "versionNumber"],
"unpackagedMetadata": ["package", "versionNumber"],
"versionDescription": ["package", "versionNumber"],
"versionName": ["package", "versionNumber"],
"versionNumber": ["package"]
},
"required": ["path"],
"additionalProperties": false,
"properties": {
"ancestorId": {
"$ref": "#/definitions/packageDirectory.ancestorId"
},
"ancestorVersion": {
"$ref": "#/definitions/packageDirectory.ancestorVersion"
},
"apexTestAccess" : {
"$ref": "#/definitions/packageDirectory.apexTestAccess"
},
"default": {
"$ref": "#/definitions/packageDirectory.default"
},
"definitionFile": {
"$ref": "#/definitions/packageDirectory.definitionFile"
},
"dependencies": {
"$ref": "#/definitions/packageDirectory.dependencies"
},
"includeProfileUserLicenses": {
"$ref": "#/definitions/packageDirectory.includeProfileUserLicenses"
},
"package": {
"$ref": "#/definitions/packageDirectory.package"
},
"path": {
"$ref": "#/definitions/packageDirectory.path"
},
"postInstallScript": {
"$ref": "#/definitions/packageDirectory.postInstallScript"
},
"postInstallUrl": {
"$ref": "#/definitions/packageDirectory.postInstallUrl"
},
"releaseNotesUrl": {
"$ref": "#/definitions/packageDirectory.releaseNotesUrl"
},
"uninstallScript": {
"$ref": "#/definitions/packageDirectory.uninstallScript"
},
"unpackagedMetadata": {
"$ref": "#/definitions/packageDirectory.unpackagedMetadata"
},
"versionDescription": {
"$ref": "#/definitions/packageDirectory.versionDescription"
},
"versionName": {
"$ref": "#/definitions/packageDirectory.versionName"
},
"versionNumber": {
"$ref": "#/definitions/packageDirectory.versionNumber"
},
"branch": {
"$ref": "#/definitions/packageDirectory.branch"
}
}
}
},
"name": {
"title": "name",
"type": "string",
"description": "The name of your Salesforce project."
},
"namespace": {
"title": "Namespace",
"type": "string",
"description": "The global namespace that is used with a package. The namespace must be registered with an org that is associated with your Dev Hub org. This namespace is assigned to scratch orgs created with the org:create command. If you’re creating an unlocked package, you have the option to create a package with no namespace."
},
"sourceApiVersion": {
"title": "Source API Version",
"type": "string",
"description": "The API version that the source is compatible with. The default is the same version as the Salesforce CLI.",
"default": "48.0"
},
"sfdcLoginUrl": {
"title": "SFDC Login URL",
"type": "string",
"description": "The login URL that the force:auth commands use. If not specified, the default is login.salesforce.com. Override the default value if you want users to authorize to a specific Salesforce instance. For example, if you want to authorize into a sandbox org, set this parameter to test.salesforce.com.",
"default": "https://login.salesforce.com"
},
"signupTargetLoginUrl": {
"type": "string",
"description": "The url that is used when creating new scratch orgs. This is typically only used for testing prerelease environments."
},
"oauthLocalPort": {
"type": "number",
"description": "By default, the OAuth port is 1717. However, change this port if this port is already in use, and you plan to create a connected app in your Dev Hub org to support JWT-based authorization."
},
"pushPackageDirectoriesSequentially": {
"type": "boolean",
"description": "Whether to push package directories sequentially. If true, the package directories are pushed in the order they are listed in the project file. By default, the package directories are pushed in one deployment."
},
"plugins": {
"title": "CLI Plugins custom settings",
"type": "object",
"description": "Salesforce CLI plugin configurations used with this project.",
"additionalProperties": true
},
"packageAliases": {
"title": "Aliases for packaging ids",
"type": "object",
"description": "The Salesforce CLI updates this file with the aliases when you create a package or package version. You can also manually update this section for existing packages or package versions. You can use the alias instead of the cryptic package ID when running CLI force:package commands.",
"patternProperties": {
"^[ -~]+$": {
"type": "string",
"pattern": "^(0Ho|033|05i|04t)([a-zA-Z0-9]{15}|[a-zA-Z0-9]{12})$"
}
}
}
},
"definitions": {
"packageDirectory.path": {
"title": "Path",
"type": "string",
"description": "If you don’t specify a path, the Salesforce CLI uses a placeholder when you create a package."
},
"packageDirectory.default": {
"title": "Default",
"type": "boolean",
"description": "If you have specified more than one path, include this parameter for the default path to indicate which is the default package directory.",
"default": true
},
"packageDirectory.package": {
"title": "Package Identifier",
"type": "string",
"description": "The package name you specified when creating the package."
},
"packageDirectory.versionName": {
"title": "Version Name",
"type": "string",
"description": "If not specified, the CLI uses versionNumber as the version name."
},
"packageDirectory.versionDescription": {
"title": "Version Description",
"type": "string",
"description": "Human readable version information, format not specified."
},
"packageDirectory.versionNumber": {
"title": "Version Number",
"type": "string",
"description": "Version numbers are formatted as major.minor.patch.build. For example, 1.2.1.8."
},
"packageDirectory.definitionFile": {
"title": "Definition File",
"type": "string",
"description": "Reference an external .json file to specify the features and org preferences required for the metadata of your package, such as the scratch org definition."
},
"packageDirectory.dependencies": {
"type": "array",
"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"],
"properties": {
"package": {
"type": "string"
},
"versionNumber": {
"type": "string"
},
"branch": {
"type": "string"
}
}
}
},
"packageDirectory.ancestorId": {
"title": "Ancestor ID",
"type": "string",
"description": "The ancestor that’s the immediate parent of the version that you’re creating. The package version ID to supply starts with '05i'."
},
"packageDirectory.ancestorVersion": {
"title": "Ancestor Version",
"type": "string",
"description": "The ancestor that’s the immediate parent of the version that you’re creating. The ancestor version uses the format major.minor.patch.build."
},
"packageDirectory.releaseNotesUrl": {
"type": "string",
"title": "Release Notes Url",
"description": "The release notes url."
},
"packageDirectory.postInstallUrl": {
"type": "string",
"title": "Post Install Url",
"description": "The post install url."
},
"packageDirectory.postInstallScript": {
"type": "string",
"title": "Post Install Script",
"description": "The post install script."
},
"packageDirectory.uninstallScript": {
"type": "string",
"title": "Uninstall Script",
"description": "The uninstall script."
},
"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",
"description": "Whether to include <userLicense> elements in profile metadata "
},
"packageDirectory.apexTestAccess": {
"type": "object",
"title": "Apex Test Access",
"description": "Additional access that should be granted to the user when running package Apex tests",
"properties": {
"permissionSets": {
"title": "Permission Sets",
"description": "The list of permission sets to enable while running Apex tests",
"oneOf": [
{
"type": "string",
"title": "Permission Set String",
"description": "The list of permission set 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",
"items": {
"type": "string",
"title": "Permission Set Name",
"description": "Name of the permission set to enable while running Apex tests"
}
}
]
},
"permissionSetLicenses": {
"title": "Permission Set License",
"description": "The list of permission sets licenses to enable while running Apex tests",
"oneOf": [
{
"type": "string",
"title": "Permission Set Licenses String",
"description": "The list of permission set licenses to enable while running Apex tests as a string"
},
{
"type": "array",
"title": "Permission Set Licenses Array",
"description": "The list of permission set licenses to enable while running Apex tests as an array",
"items": {
"type": "string",
"title": "Permission Set Licenses Developer Name",
"description": "Name of the permission set to enable while running Apex tests"
}
}
]
}
}
},
"packageDirectory.branch": {
"type": "string",
"title": "Branch",
"description": "The name of the branch to be assigned to the package version"
}
}
}