@forge/manifest
12.3.0-next.112.3.0-next.2
~
Modified (4 files)
Index: package/out/validators/entity-property-validator.js
===================================================================
--- package/out/validators/entity-property-validator.js
+++ package/out/validators/entity-property-validator.js
@@ -3,8 +3,9 @@
exports.EntityPropertyValidator = void 0;
const types_1 = require("../types");
const text_1 = require("../text");
const utils_1 = require("../utils");
+const MAX_ENTITY_PROPERTY_EXTRACTIONS_PER_APP = 100;
const isManifestWithModules = (manifest) => {
return !!manifest?.typedContent?.['modules'];
};
class EntityPropertyValidator {
@@ -12,11 +13,11 @@
const validationErrors = [];
if (manifest?.typedContent && isManifestWithModules(manifest)) {
const { yamlContentByLine, typedContent: { modules } } = manifest;
const appValuesLength = modules[types_1.AllModuleTypes.JiraEntityProperty]?.reduce((acc, module) => acc + module.values.length, 0) || 0;
- if (appValuesLength > 30) {
+ if (appValuesLength > MAX_ENTITY_PROPERTY_EXTRACTIONS_PER_APP) {
validationErrors.push({
- message: text_1.errors.modules.jiraEntityProperty.maxExtractionsPerApp(30),
+ message: text_1.errors.modules.jiraEntityProperty.maxExtractionsPerApp(MAX_ENTITY_PROPERTY_EXTRACTIONS_PER_APP),
reference: text_1.References.Modules,
level: 'error',
...(0, utils_1.findPosition)('app', yamlContentByLine)
}); Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,7 +1,7 @@
{
"name": "@forge/manifest",
- "version": "12.3.0-next.1",
+ "version": "12.3.0-next.2",
"description": "Definitions and validations of the Forge manifest",
"main": "out/index.js",
"scripts": {
"build": "yarn run compile", Index: package/out/validators/entity-property-validator.d.ts.map
===================================================================
--- package/out/validators/entity-property-validator.d.ts.map
+++ package/out/validators/entity-property-validator.d.ts.map
@@ -1,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;AASrG,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"}
\ No newline at end of file
+{"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"}
\ No newline at end of file File too large for inline diff