Hi, I am developing an Add-on for bitbucket cloud and I am having some issues on adding a general page. To do this I have followed this guide:
https://developer.atlassian.com/bitbucket/modules/generalPages.html
In my descriptor I have a section like this:
"generalPages": [
{
"key": "addon-dialog",
"url": "/bitbucket/dialog",
"name": {
"value": "Canvas Dialog"
}
},
{
"key": "addon-manage",
"url": "/board/manage",
"name": {
"value": "Manage Addon"
},
"location": "org.bitbucket.repository.actions",
"conditions" : [
{
"condition": "user_is_logged_in"
}
]
}
]
With this in the descriptor, when I install the plugin in bitbucket, it returns the next error:
The add-on server returned invalid data. Please contact the add-on vendor for help. Here's the error we encountered - Invalid JSON: Additional properties are not allowed (u'location' was unexpected) at modules.generalPages.1
If I remove the location section it installs correctly, but the pages (addon-dialog and addon-manage) don't exist. Also I have tried using generalPage instead of generalPages and the bitbucket doesn't return any error, but it continues without the pages.
Is there any problem with generalPages in bitbucket? How can I solve this problem?
Thank you!!