@forge/manifest 13.3.0-next.5 → 13.3.0-next.6
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 +6 -0
- package/out/schema/basic-manifest-schema.json +0 -8
- package/out/schema/basic-manifest.d.ts +0 -4
- package/out/schema/manifest-schema.json +0 -8
- package/out/schema/manifest.d.ts +0 -4
- package/out/validators/compatibility-validator.d.ts.map +1 -1
- package/out/validators/compatibility-validator.js +9 -13
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -58,10 +58,6 @@ export interface App {
|
|
|
58
58
|
description?: Description;
|
|
59
59
|
id: Id;
|
|
60
60
|
runtime: Runtime;
|
|
61
|
-
/**
|
|
62
|
-
* The target of the app installation.
|
|
63
|
-
*/
|
|
64
|
-
installationTarget?: 'site' | 'unit';
|
|
65
61
|
compatibility?: Compatibility;
|
|
66
62
|
access?: Access;
|
|
67
63
|
licensing?: Licensing;
|
package/out/schema/manifest.d.ts
CHANGED
|
@@ -864,10 +864,6 @@ export interface App {
|
|
|
864
864
|
description?: Description;
|
|
865
865
|
id: Id;
|
|
866
866
|
runtime: Runtime;
|
|
867
|
-
/**
|
|
868
|
-
* The target of the app installation.
|
|
869
|
-
*/
|
|
870
|
-
installationTarget?: 'site' | 'unit';
|
|
871
867
|
compatibility?: Compatibility;
|
|
872
868
|
access?: Access;
|
|
873
869
|
licensing?: Licensing;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compatibility-validator.d.ts","sourceRoot":"","sources":["../../src/validators/compatibility-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAK3D,qBAAa,sBAAuB,YAAW,kBAAkB,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,SAAS,EAAE,GAAG,CAAC;IAC/F,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC,GAAG,CAAC,GAAG,SAAS,GAAG,OAAO,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"compatibility-validator.d.ts","sourceRoot":"","sources":["../../src/validators/compatibility-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAK3D,qBAAa,sBAAuB,YAAW,kBAAkB,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,SAAS,EAAE,GAAG,CAAC;IAC/F,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC,GAAG,CAAC,GAAG,SAAS,GAAG,OAAO,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAC;CAuElG"}
|
|
@@ -16,19 +16,15 @@ class CompatibilityValidator {
|
|
|
16
16
|
const app = manifest.typedContent.app;
|
|
17
17
|
const modules = manifest.typedContent.modules || {};
|
|
18
18
|
const compatibility = app?.compatibility || {};
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
if (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
level: 'error',
|
|
29
|
-
...(0, utils_1.findPosition)('compatibility', manifest.yamlContentByLine)
|
|
30
|
-
});
|
|
31
|
-
}
|
|
19
|
+
const hasCompatibilityKeys = Object.keys(compatibility).length > 0;
|
|
20
|
+
const requiredContexts = Object.keys(compatibility).filter((key) => compatibility[key]?.required === true);
|
|
21
|
+
if (hasCompatibilityKeys && requiredContexts.length !== 1) {
|
|
22
|
+
validationErrors.push({
|
|
23
|
+
message: text_1.errors.app.compatibility.oneRequiredContext(),
|
|
24
|
+
reference: text_2.References.SchemaError,
|
|
25
|
+
level: 'error',
|
|
26
|
+
...(0, utils_1.findPosition)('compatibility', manifest.yamlContentByLine)
|
|
27
|
+
});
|
|
32
28
|
}
|
|
33
29
|
const isJiraPrimary = compatibility.jira?.required === true;
|
|
34
30
|
const isConfluencePrimary = compatibility.confluence?.required === true;
|