@forge/manifest 12.1.1 → 12.1.2-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/out/schema/manifest-schema.json +183 -0
- package/out/text/errors.d.ts +2 -0
- package/out/text/errors.d.ts.map +1 -1
- package/out/text/errors.js +3 -1
- package/out/validators/connect-remote-validator.d.ts.map +1 -1
- package/out/validators/connect-remote-validator.js +10 -0
- package/out/validators/permissions-validator.js +1 -1
- package/out/validators/providers-validator.d.ts.map +1 -1
- package/out/validators/providers-validator.js +8 -0
- package/out/validators/remotes-is-configurable-validator.d.ts.map +1 -1
- package/out/validators/remotes-is-configurable-validator.js +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @forge/manifest
|
|
2
2
|
|
|
3
|
+
## 12.1.2-next.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4210da0: Update manifest definitions
|
|
8
|
+
|
|
9
|
+
## 12.1.2-next.0
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- ad5a470: Updating manifest validation for configurable remotes
|
|
14
|
+
|
|
3
15
|
## 12.1.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -29675,8 +29675,191 @@
|
|
|
29675
29675
|
}
|
|
29676
29676
|
}
|
|
29677
29677
|
},
|
|
29678
|
+
"RemoteBaseUrlSchema": {
|
|
29679
|
+
"oneOf": [
|
|
29680
|
+
{
|
|
29681
|
+
"type": "string"
|
|
29682
|
+
},
|
|
29683
|
+
{
|
|
29684
|
+
"type": "object",
|
|
29685
|
+
"propertyNames": {
|
|
29686
|
+
"enum": [
|
|
29687
|
+
"EU",
|
|
29688
|
+
"US",
|
|
29689
|
+
"AU",
|
|
29690
|
+
"DE",
|
|
29691
|
+
"SG",
|
|
29692
|
+
"CA",
|
|
29693
|
+
"IN",
|
|
29694
|
+
"KR",
|
|
29695
|
+
"JP",
|
|
29696
|
+
"GB",
|
|
29697
|
+
"CH",
|
|
29698
|
+
"default"
|
|
29699
|
+
]
|
|
29700
|
+
},
|
|
29701
|
+
"patternProperties": {
|
|
29702
|
+
".+": {
|
|
29703
|
+
"type": "string",
|
|
29704
|
+
"minLength": 1
|
|
29705
|
+
}
|
|
29706
|
+
},
|
|
29707
|
+
"required": [
|
|
29708
|
+
"default"
|
|
29709
|
+
]
|
|
29710
|
+
}
|
|
29711
|
+
]
|
|
29712
|
+
},
|
|
29713
|
+
"RemoteKeySchema": {
|
|
29714
|
+
"type": "string",
|
|
29715
|
+
"description": "A key for the remote, which other modules can refer to. Must be unique within the manifest and have a maximum of 23 characters.",
|
|
29716
|
+
"pattern": "^[a-zA-Z0-9_-]+$",
|
|
29717
|
+
"maxLength": 23
|
|
29718
|
+
},
|
|
29719
|
+
"RemoteOperationsSchema": {
|
|
29720
|
+
"description": "The type of operations done in the remote",
|
|
29721
|
+
"type": "array",
|
|
29722
|
+
"items": {
|
|
29723
|
+
"type": "string",
|
|
29724
|
+
"enum": [
|
|
29725
|
+
"storage",
|
|
29726
|
+
"other",
|
|
29727
|
+
"compute",
|
|
29728
|
+
"fetch"
|
|
29729
|
+
]
|
|
29730
|
+
},
|
|
29731
|
+
"minItems": 1
|
|
29732
|
+
},
|
|
29733
|
+
"RemoteAuthSchema": {
|
|
29734
|
+
"description": "Whether the remote should be provided with tokens to use as-app and / or as-user authentication to make requests to Atlassian APIs",
|
|
29735
|
+
"type": "object",
|
|
29736
|
+
"properties": {
|
|
29737
|
+
"appSystemToken": {
|
|
29738
|
+
"type": "object",
|
|
29739
|
+
"properties": {
|
|
29740
|
+
"enabled": {
|
|
29741
|
+
"type": "boolean"
|
|
29742
|
+
}
|
|
29743
|
+
},
|
|
29744
|
+
"required": [
|
|
29745
|
+
"enabled"
|
|
29746
|
+
],
|
|
29747
|
+
"additionalProperties": false
|
|
29748
|
+
},
|
|
29749
|
+
"appUserToken": {
|
|
29750
|
+
"type": "object",
|
|
29751
|
+
"properties": {
|
|
29752
|
+
"enabled": {
|
|
29753
|
+
"type": "boolean"
|
|
29754
|
+
}
|
|
29755
|
+
},
|
|
29756
|
+
"required": [
|
|
29757
|
+
"enabled"
|
|
29758
|
+
],
|
|
29759
|
+
"additionalProperties": false
|
|
29760
|
+
}
|
|
29761
|
+
},
|
|
29762
|
+
"additionalProperties": false
|
|
29763
|
+
},
|
|
29764
|
+
"RemoteStorageSchema": {
|
|
29765
|
+
"description": "Options related to remote storage",
|
|
29766
|
+
"type": "object",
|
|
29767
|
+
"required": [
|
|
29768
|
+
"inScopeEUD"
|
|
29769
|
+
],
|
|
29770
|
+
"additionalProperties": false,
|
|
29771
|
+
"properties": {
|
|
29772
|
+
"inScopeEUD": {
|
|
29773
|
+
"description": "Whether it is storing in scope End User Data",
|
|
29774
|
+
"type": "boolean"
|
|
29775
|
+
}
|
|
29776
|
+
}
|
|
29777
|
+
},
|
|
29778
|
+
"RemoteConfigurableSchema": {
|
|
29779
|
+
"description": "A remote that an admin can configure",
|
|
29780
|
+
"type": "object",
|
|
29781
|
+
"additionalProperties": false,
|
|
29782
|
+
"properties": {
|
|
29783
|
+
"name": {
|
|
29784
|
+
"description": "The name that an admin will see when they're configuring the remote",
|
|
29785
|
+
"type": "string"
|
|
29786
|
+
},
|
|
29787
|
+
"description": {
|
|
29788
|
+
"description": "The description that an admin will see when they're configuring the remote",
|
|
29789
|
+
"type": "string"
|
|
29790
|
+
},
|
|
29791
|
+
"supportedPatterns": {
|
|
29792
|
+
"description": "The domains that are supported for this remote, prefixed with a * wildcard. For example, `*.atlassian.net` would allow this remote to communicate with domains that matched this.",
|
|
29793
|
+
"type": "array",
|
|
29794
|
+
"minItems": 1,
|
|
29795
|
+
"items": {
|
|
29796
|
+
"type": "string"
|
|
29797
|
+
}
|
|
29798
|
+
}
|
|
29799
|
+
},
|
|
29800
|
+
"required": [
|
|
29801
|
+
"name",
|
|
29802
|
+
"description"
|
|
29803
|
+
]
|
|
29804
|
+
},
|
|
29805
|
+
"StaticRemoteSchema": {
|
|
29806
|
+
"type": "object",
|
|
29807
|
+
"title": "StaticRemote",
|
|
29808
|
+
"required": [
|
|
29809
|
+
"key",
|
|
29810
|
+
"baseUrl"
|
|
29811
|
+
],
|
|
29812
|
+
"additionalProperties": false,
|
|
29813
|
+
"properties": {
|
|
29814
|
+
"key": {
|
|
29815
|
+
"$ref": "#/definitions/RemoteKeySchema"
|
|
29816
|
+
},
|
|
29817
|
+
"baseUrl": {
|
|
29818
|
+
"$ref": "#/definitions/RemoteBaseUrlSchema"
|
|
29819
|
+
},
|
|
29820
|
+
"operations": {
|
|
29821
|
+
"$ref": "#/definitions/RemoteOperationsSchema"
|
|
29822
|
+
},
|
|
29823
|
+
"auth": {
|
|
29824
|
+
"$ref": "#/definitions/RemoteAuthSchema"
|
|
29825
|
+
},
|
|
29826
|
+
"storage": {
|
|
29827
|
+
"$ref": "#/definitions/RemoteStorageSchema"
|
|
29828
|
+
}
|
|
29829
|
+
}
|
|
29830
|
+
},
|
|
29831
|
+
"ConfigurableRemoteSchema": {
|
|
29832
|
+
"type": "object",
|
|
29833
|
+
"title": "ConfigurableRemoteSchema",
|
|
29834
|
+
"required": [
|
|
29835
|
+
"key",
|
|
29836
|
+
"configurable"
|
|
29837
|
+
],
|
|
29838
|
+
"additionalProperties": false,
|
|
29839
|
+
"properties": {
|
|
29840
|
+
"key": {
|
|
29841
|
+
"$ref": "#/definitions/RemoteKeySchema"
|
|
29842
|
+
},
|
|
29843
|
+
"baseUrl": {
|
|
29844
|
+
"$ref": "#/definitions/RemoteBaseUrlSchema"
|
|
29845
|
+
},
|
|
29846
|
+
"operations": {
|
|
29847
|
+
"$ref": "#/definitions/RemoteOperationsSchema"
|
|
29848
|
+
},
|
|
29849
|
+
"auth": {
|
|
29850
|
+
"$ref": "#/definitions/RemoteAuthSchema"
|
|
29851
|
+
},
|
|
29852
|
+
"storage": {
|
|
29853
|
+
"$ref": "#/definitions/RemoteStorageSchema"
|
|
29854
|
+
},
|
|
29855
|
+
"configurable": {
|
|
29856
|
+
"$ref": "#/definitions/RemoteConfigurableSchema"
|
|
29857
|
+
}
|
|
29858
|
+
}
|
|
29859
|
+
},
|
|
29678
29860
|
"RemotesSchema": {
|
|
29679
29861
|
"type": "array",
|
|
29862
|
+
"title": "RemotesSchema",
|
|
29680
29863
|
"items": {
|
|
29681
29864
|
"type": "object",
|
|
29682
29865
|
"title": "RemotesSchema",
|
package/out/text/errors.d.ts
CHANGED
|
@@ -185,11 +185,13 @@ export declare const errors: {
|
|
|
185
185
|
missingEgress: (remote: string) => string;
|
|
186
186
|
missingProfileFunction: (provider: string, functionKey: string) => string;
|
|
187
187
|
hasRegionUrls: (provider: string, remote: string) => string;
|
|
188
|
+
hasConfigurableRemote: (provider: string, remote: string) => string;
|
|
188
189
|
};
|
|
189
190
|
app: {
|
|
190
191
|
missingAppConnectRemote: () => string;
|
|
191
192
|
missingRemoteForConnect: (key: string) => string;
|
|
192
193
|
missingConnectModules: () => string;
|
|
194
|
+
noConfigurableConnectRemote: () => string;
|
|
193
195
|
features: {
|
|
194
196
|
deprecatedAutoUserConsent: () => string;
|
|
195
197
|
};
|
package/out/text/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/text/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG1C,eAAO,MAAM,MAAM;8BACS,MAAM,KAAG,MAAM;+BACd,MAAM,EAAE,KAAG,MAAM;2BAIvB,MAAM;yBAEN,MAAM,GAAG,SAAS,QAAQ,MAAM,EAAE,UAAU,MAAM,GAAG,SAAS,KAAG,MAAM;;uBAO3E,MAAM,EAAE,EAAE,GAAG,SAAS,KAAG,MAA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uCAEJ,MAAM,KAAG,MAAM;qCAEnB,MAAM;2CAEA,MAAM;;6CAEN,MAAM;;;mDAIE,MAAM,KAAG,MAAM;iDAEnB,MAAM;;;;4CAKX,MAAM,SAAS,MAAM,KAAG,MAAM;4CAE9B,MAAM,KAAG,MAAM;4CACf,MAAM,SAAS,MAAM,KAAG,MAAM;+CAE3B,MAAM,aAAa,MAAM,SAAS,MAAM,KAAG,MAAM;yCAEvD,MAAM,SAAS,MAAM,KAAG,MAAM;4CAE3B,MAAM,SAAS,MAAM,KAAG,MAAM;gDAE1B,MAAM,aAAa,MAAM,KAAG,MAAM;4CAEtC,MAAM,SAAS,MAAM,KAAG,MAAM;;;;;gCAM1C,MAAM;;;;;;;;;0DAWwB,wBAAwB,KAAG,MAAM;sDAErC,wBAAwB,KAAG,MAAM;kDAErC,wBAAwB,QAAQ,MAAM,KAAG,MAAM;mDAE9C,wBAAwB,KAAG,MAAM;mCAEjD,MAAM,KAAG,MAAM;;oDAEE,MAAM,aAAa,MAAM,KAAG,MAAM;4CAE1C,MAAM,sBAAsB,wBAAwB,YAAY,MAAM;;;;mCAKjF,MAAM;;;CAQlC,CAAC;AAEF,oBAAY,UAAU;IACpB,eAAe,2BAA2B;IAC1C,eAAe,wBAAwB;IACvC,WAAW,4BAA4B;IACvC,WAAW,+BAA+B;IAC1C,aAAa,8BAA8B;IAC3C,OAAO,0BAA0B;IACjC,cAAc,kCAAkC;IAChD,SAAS,4BAA4B;IACrC,SAAS,4BAA4B;IACrC,UAAU,wBAAwB;IAClC,GAAG,8BAA8B;CAClC"}
|
package/out/text/errors.js
CHANGED
|
@@ -198,12 +198,14 @@ exports.errors = {
|
|
|
198
198
|
missingRemote: (provider, remote) => `missing remote '${remote}' is being referenced by '${provider}' in providers`,
|
|
199
199
|
missingEgress: (remote) => `missing egress permissions for remote '${remote}'. Please add the remote to permissions.fetch`,
|
|
200
200
|
missingProfileFunction: (provider, functionKey) => `missing function '${functionKey}' is being referenced by '${provider}' in providers`,
|
|
201
|
-
hasRegionUrls: (provider, remote) => `External Authentication Provider does not support region specific URLs. The '${provider}' provider's remote '${remote}' contains region specific URLs
|
|
201
|
+
hasRegionUrls: (provider, remote) => `External Authentication Provider does not support region specific URLs. The '${provider}' provider's remote '${remote}' contains region specific URLs.`,
|
|
202
|
+
hasConfigurableRemote: (provider, remote) => `External Authentication Provider does not support configurable remotes. The '${provider}' provider's remote '${remote}' contains the \`configurable\` field.`
|
|
202
203
|
},
|
|
203
204
|
app: {
|
|
204
205
|
missingAppConnectRemote: () => `missing app.connect.remote. app.connect.remote is required if connectModules are present.`,
|
|
205
206
|
missingRemoteForConnect: (key) => `no remote found with key '${key}' matching app.connect.remote value.`,
|
|
206
207
|
missingConnectModules: () => 'Missing connectModules. When app.connect.authentication is present, connectModules is required.',
|
|
208
|
+
noConfigurableConnectRemote: () => 'Connect remotes cannot be configurable',
|
|
207
209
|
features: {
|
|
208
210
|
deprecatedAutoUserConsent: () => 'The autoUserConsent feature flag is no longer required to use automatic user consent and should be removed from the manifest.'
|
|
209
211
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect-remote-validator.d.ts","sourceRoot":"","sources":["../../src/validators/connect-remote-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAIpD,qBAAa,sBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IAEnF,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"connect-remote-validator.d.ts","sourceRoot":"","sources":["../../src/validators/connect-remote-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAIpD,qBAAa,sBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IAEnF,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;CAqDrD"}
|
|
@@ -31,6 +31,16 @@ class ConnectRemoteValidator {
|
|
|
31
31
|
...(0, utils_1.findPosition)('connect', manifest.yamlContentByLine)
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
+
if (manifest.typedContent.connectModules &&
|
|
35
|
+
app?.connect?.remote &&
|
|
36
|
+
manifest.typedContent.remotes?.find((remote) => remote.key === app?.connect?.remote && remote?.configurable)) {
|
|
37
|
+
validationErrors.push({
|
|
38
|
+
message: text_1.errors.app.noConfigurableConnectRemote(),
|
|
39
|
+
reference: text_1.References.App,
|
|
40
|
+
level: 'error',
|
|
41
|
+
...(0, utils_1.findPosition)('connect', manifest.yamlContentByLine)
|
|
42
|
+
});
|
|
43
|
+
}
|
|
34
44
|
return {
|
|
35
45
|
success: validationErrors.length === 0,
|
|
36
46
|
manifestObject: manifest,
|
|
@@ -244,7 +244,7 @@ class PermissionsValidator {
|
|
|
244
244
|
const baseUrl = typeof item.baseUrl === 'string' ? item.baseUrl : item.baseUrl.default;
|
|
245
245
|
return prev.set(item.key, baseUrl);
|
|
246
246
|
}
|
|
247
|
-
if (!item.baseUrl && item
|
|
247
|
+
if (!item.baseUrl && item?.configurable) {
|
|
248
248
|
return prev.set(item.key, null);
|
|
249
249
|
}
|
|
250
250
|
return prev;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providers-validator.d.ts","sourceRoot":"","sources":["../../src/validators/providers-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AAGrF,OAAO,KAAK,EAGV,cAAc,EAGf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG3D,qBAAa,kBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IAEnF,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;IAqFpD,OAAO,CAAC,mBAAmB;IAiB3B,OAAO,CAAC,+BAA+B;IAkBvC,OAAO,CAAC,iBAAiB;
|
|
1
|
+
{"version":3,"file":"providers-validator.d.ts","sourceRoot":"","sources":["../../src/validators/providers-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AAGrF,OAAO,KAAK,EAGV,cAAc,EAGf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG3D,qBAAa,kBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IAEnF,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;IAqFpD,OAAO,CAAC,mBAAmB;IAiB3B,OAAO,CAAC,+BAA+B;IAkBvC,OAAO,CAAC,iBAAiB;CAgD1B"}
|
|
@@ -117,6 +117,14 @@ class ProvidersValidator {
|
|
|
117
117
|
if (!remote) {
|
|
118
118
|
return;
|
|
119
119
|
}
|
|
120
|
+
if (remote?.configurable) {
|
|
121
|
+
validationErrors.push({
|
|
122
|
+
message: text_1.errors.providers.hasConfigurableRemote(provider.key, remote.key),
|
|
123
|
+
reference: text_1.References.Providers,
|
|
124
|
+
level: 'error',
|
|
125
|
+
...(0, utils_1.findPosition)(providerRemoteKey, manifest.yamlContentByLine)
|
|
126
|
+
});
|
|
127
|
+
}
|
|
120
128
|
if (typeof remote.baseUrl !== 'undefined') {
|
|
121
129
|
const remoteRegions = (0, remote_regions_validator_1.getRegionsFromBaseUrl)(remote.baseUrl);
|
|
122
130
|
if (remoteRegions.size != 1) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remotes-is-configurable-validator.d.ts","sourceRoot":"","sources":["../../src/validators/remotes-is-configurable-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AAKrF,qBAAa,kCACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;YAI3E,WAAW;IAiCnB,WAAW,CACf,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"remotes-is-configurable-validator.d.ts","sourceRoot":"","sources":["../../src/validators/remotes-is-configurable-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AAKrF,qBAAa,kCACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;YAI3E,WAAW;IAiCnB,WAAW,CACf,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;IAgC9C,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;CAOrD"}
|
|
@@ -39,7 +39,8 @@ class RemotesIsUserConfigurableValidator {
|
|
|
39
39
|
const remotes = manifest.typedContent.remotes;
|
|
40
40
|
const validationErrors = [];
|
|
41
41
|
remotes?.forEach((remote) => {
|
|
42
|
-
|
|
42
|
+
const hasConfigurable = remote?.configurable !== undefined;
|
|
43
|
+
if (!hasConfigurable && remote.baseUrl === undefined) {
|
|
43
44
|
validationErrors.push({
|
|
44
45
|
message: text_1.errors.modules.remote.neitherBaseUrlNorUserConfigurationPresent(remote.key),
|
|
45
46
|
reference: text_1.References.App,
|