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
}
}
},
…
]
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 to edit and validate the descriptor.
Please refer below Connect.json which verified in Connect Validator 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”])