@forge/manifest 12.3.0-next.0 → 12.3.0-next.2
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
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @forge/manifest
|
|
2
2
|
|
|
3
|
+
## 12.3.0-next.2
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- e36520b: Updated jira:entityProperty max extractions per app limit from 30 to 100
|
|
8
|
+
|
|
9
|
+
## 12.3.0-next.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- f9eb681: Update manifest definitions
|
|
14
|
+
|
|
3
15
|
## 12.3.0-next.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-property-validator.d.ts","sourceRoot":"","sources":["../../src/validators/entity-property-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAkB,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"entity-property-validator.d.ts","sourceRoot":"","sources":["../../src/validators/entity-property-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAkB,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AAWrG,qBAAa,uBAAuB,CAAC,CAAC,CAAE,YAAW,kBAAkB,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,EAAE,CAAC,CAAC;IAC/F,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC;CA6B9F"}
|
|
@@ -4,6 +4,7 @@ exports.EntityPropertyValidator = void 0;
|
|
|
4
4
|
const types_1 = require("../types");
|
|
5
5
|
const text_1 = require("../text");
|
|
6
6
|
const utils_1 = require("../utils");
|
|
7
|
+
const MAX_ENTITY_PROPERTY_EXTRACTIONS_PER_APP = 100;
|
|
7
8
|
const isManifestWithModules = (manifest) => {
|
|
8
9
|
return !!manifest?.typedContent?.['modules'];
|
|
9
10
|
};
|
|
@@ -13,9 +14,9 @@ class EntityPropertyValidator {
|
|
|
13
14
|
if (manifest?.typedContent && isManifestWithModules(manifest)) {
|
|
14
15
|
const { yamlContentByLine, typedContent: { modules } } = manifest;
|
|
15
16
|
const appValuesLength = modules[types_1.AllModuleTypes.JiraEntityProperty]?.reduce((acc, module) => acc + module.values.length, 0) || 0;
|
|
16
|
-
if (appValuesLength >
|
|
17
|
+
if (appValuesLength > MAX_ENTITY_PROPERTY_EXTRACTIONS_PER_APP) {
|
|
17
18
|
validationErrors.push({
|
|
18
|
-
message: text_1.errors.modules.jiraEntityProperty.maxExtractionsPerApp(
|
|
19
|
+
message: text_1.errors.modules.jiraEntityProperty.maxExtractionsPerApp(MAX_ENTITY_PROPERTY_EXTRACTIONS_PER_APP),
|
|
19
20
|
reference: text_1.References.Modules,
|
|
20
21
|
level: 'error',
|
|
21
22
|
...(0, utils_1.findPosition)('app', yamlContentByLine)
|