# Web-item weight not allowing integers in connect json

**URL:** <https://community.developer.atlassian.com/t/web-item-weight-not-allowing-integers-in-connect-json/41948>\
**Category:** Jira Cloud\
**Created:** [October 1, 2020, 4:09am UTC](https://community.developer.atlassian.com/t/web-item-weight-not-allowing-integers-in-connect-json/41948 "2020-10-01T04:09:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![AshokChelimilla](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@AshokChelimilla](https://community.developer.atlassian.com/u/AshokChelimilla)\
**Post date:** [October 1, 2020, 4:09am UTC](https://community.developer.atlassian.com/t/web-item-weight-not-allowing-integers-in-connect-json/41948/1 "2020-10-01T04:09:01Z")

</div>

Hi All,  
I have added weight to one of the web-item in a Jira connect app, but while installing it throwing the following error: 'The App descriptor failed to validate against the schema. … /webItems/0/weight: instance type(number) does not match any allowed primitive type(allowed :[Integer]).  
sample web-item configuration:  
“webItems”: [  
{  
“key”: “bulk-clone-item”,  
“url”: “/Bulk Example.html”,  
“location”: “jira.navigator.pluggable.items”,  
“weight”:30,  
“name”: {  
“value”: “Bulk Example”  
},  
“tooltip”: {  
“value”: “Bulk Example”  
},  
“icon”: {  
“url”: “/img/bulk-clone.svg”  
},  
“target”: {  
“type”: “dialog”,  
“options”: {  
“height”: “1px”,  
“width”: “1px”,  
“chrome”: false  
}  
}  
},  
…  
]

Refer to

 ![17%20PM](https://global.discourse-cdn.com/atlassiandeveloper/original/3X/7/9/79b3e3002b680ce1ca056868eae7ac7405e3a0fb.png) attachment for more details.

---

<div class="post-metadata">

**Author:** ![dmorrow](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/dmorrow/32/35895_2.png) [@dmorrow](https://community.developer.atlassian.com/u/dmorrow)\
**Post date:** [October 7, 2020, 9:54am UTC](https://community.developer.atlassian.com/t/web-item-weight-not-allowing-integers-in-connect-json/41948/2 "2020-10-07T09:54:21Z")

</div>

Hi @AshokChelimilla,

Does the descriptor validate when you remove the `“weight”:30,` line?

Regards,  
Dugald

---

<div class="post-metadata">

**Author:** ![AshokChelimilla](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@AshokChelimilla](https://community.developer.atlassian.com/u/AshokChelimilla)\
**Post date:** [October 7, 2020, 12:51pm UTC](https://community.developer.atlassian.com/t/web-item-weight-not-allowing-integers-in-connect-json/41948/3 "2020-10-07T12:51:12Z")

</div>

Thank you @dmorrow for your response.  
Yes. If the “weight”:30, line removed it’s allowing to install App in Jira cloud instance.

Thanks,  
Ashok

---

<div class="post-metadata">

**Author:** ![dmorrow](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/dmorrow/32/35895_2.png) [@dmorrow](https://community.developer.atlassian.com/u/dmorrow)\
**Post date:** [October 9, 2020, 2:22am UTC](https://community.developer.atlassian.com/t/web-item-weight-not-allowing-integers-in-connect-json/41948/4 "2020-10-09T02:22:38Z")

</div>

Hi @AshokChelimilla,

I can’t reproduce your issue. Are you sure the descriptor is well formed and there are no hidden/strange characters in it. Also, you can use [Connect Validator](https://atlassian-connect-validator.herokuapp.com/validate) to edit and validate the descriptor.

Regards,  
Dugald

---

<div class="post-metadata">

**Author:** ![AshokChelimilla](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@AshokChelimilla](https://community.developer.atlassian.com/u/AshokChelimilla)\
**Post date:** [October 16, 2020, 12:29pm UTC](https://community.developer.atlassian.com/t/web-item-weight-not-allowing-integers-in-connect-json/41948/5 "2020-10-16T12:29:06Z")

</div>

Hi @dmorrow,

Please refer below Connect.json which verified in [Connect Validator](https://atlassian-connect-validator.herokuapp.com/validate) but installation is failing by throwing the following error  
error message:  
he app descriptor failed to validate against the schema. Please confirm this app is intended for use with JIRA and then contact the app vendor.

- /webItems/0/weight: instance type (number) does not match any allowed primitive type (allowed: [“integer”])

Connect-Atlassian.json:

```auto
{
  "key": "org.myapp",
  "name": "myapp for Jira",
  "baseUrl":"https://8dbd3631dae6.ngrok.io" ,
  "enableLicensing": false,
  "description": "Test Descriptor.",
  "vendor": {
    "name": "Bob Swift Atlassian Apps (an Appfire company)",
    "url": "https://test.atlassian.net/wiki"
  },
  "scopes": ["READ", "WRITE", "DELETE", "ACT_AS_USER", "ADMIN"],
  "authentication": {
    "type": "jwt"
  },
  "apiVersion": 1,
  "links": {
    "config": "https://8dbd3631dae6.ngrok.io/atlassian-connect.json"
  },
  "modules": {
    "webItems": [
      {
        "key": "test-clone-item",
        "url": "/test-clone.html",
        "location": "jira.navigator.pluggable.items",
        "weight": 30,
        "name": {
            "value": "test test Plus"
        },
        "icon": {
              "url": "/img/test-clone.svg"
              },
              "target": {
                "type": "dialog",
                "options": {
                  "height": "1px",
                  "width": "1px",
                  "chrome": false
                }
              }
      }
    ]
  }
}

```

Note: Same connect JSON file is allowing to install after removing **“weight”: 30,** from it.

Regards,  
Ashok

---

<div class="post-metadata">

**Author:** ![dmorrow](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/dmorrow/32/35895_2.png) [@dmorrow](https://community.developer.atlassian.com/u/dmorrow)\
**Post date:** [October 19, 2020, 5:54am UTC](https://community.developer.atlassian.com/t/web-item-weight-not-allowing-integers-in-connect-json/41948/6 "2020-10-19T05:54:57Z")

</div>

Hi @AshokChelimilla,

I’ve created a simple public app to try to reproduce this. The descriptor is [https://dugaldmorrow.github.io/webitem-with-weight/jira-connect-descriptor.json](https://dugaldmorrow.github.io/webitem-with-weight/jira-connect-descriptor.json). Can you try installing this to see if it works for you like it does for me.

Regards,  
Dugald

---

<div class="post-metadata">

**Author:** ![dmorrow](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/dmorrow/32/35895_2.png) [@dmorrow](https://community.developer.atlassian.com/u/dmorrow)\
**Post date:** [November 29, 2020, 8:50pm UTC](https://community.developer.atlassian.com/t/web-item-weight-not-allowing-integers-in-connect-json/41948/7 "2020-11-29T20:50:26Z")

</div>

Hi @AshokChelimilla,

Are you still having this issue. Did my test app help?

Regards,  
Dugald
