Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

What schema does Marketplace validate against for Bitbucket Cloud app submissions?

Iain Cameron September 28, 2020

I'm not able to submit a new Bitbucket Cloud app to the Atlassian Marketplace as it fails to validate my JSON descriptor - it complains about the following scopes:

 

"scopes": [
"account",
"team",
"repository:write",
"pullrequest:write"
]

 

These scopes seem to be valid according to https://developer.atlassian.com/cloud/bitbucket/bitbucket-cloud-rest-api-scopes/ and the app tests out fine when I install it in my own account.

 

Full error message:

The .json descriptor provided is invalid (/scopes/0: instance value ("account") not found in enum (possible values: ["none","NONE","read","READ","write","WRITE","delete","DELETE","project_admin","PROJECT_ADMIN","space_admin","SPACE_ADMIN","admin","ADMIN","act_as_user","ACT_AS_USER","access_email_addresses","ACCESS_EMAIL_ADDRESSES"]), /scopes/1: instance value ("team") not found in enum (possible values: ["none","NONE","read","READ","write","WRITE","delete","DELETE","project_admin","PROJECT_ADMIN","space_admin","SPACE_ADMIN","admin","ADMIN","act_as_user","ACT_AS_USER","access_email_addresses","ACCESS_EMAIL_ADDRESSES"]), /scopes/2: instance value ("repository:write") not found in enum (possible values: ["none","NONE","read","READ","write","WRITE","delete","DELETE","project_admin","PROJECT_ADMIN","space_admin","SPACE_ADMIN","admin","ADMIN","act_as_user","ACT_AS_USER","access_email_addresses","ACCESS_EMAIL_ADDRESSES"]), /scopes/3: instance value ("pullrequest:write") not found in enum (possible values: ["none","NONE","read","READ","write","WRITE","delete","DELETE","project_admin","PROJECT_ADMIN","space_admin","SPACE_ADMIN","admin","ADMIN","act_as_user","ACT_AS_USER","access_email_addresses","ACCESS_EMAIL_ADDRESSES"])). Check your descriptor and try again.

1 answer

1 accepted

1 vote
Answer accepted
Iain Cameron September 30, 2020

The root cause of this issue was:

 

  • My "modules" section in my descriptor contained "adminPage" rather than "adminPages"
  • This caused the validation to not be able to detect my app as a Bitbucket app, it defaulted to Jira.
  • The scopes error was then a result of it trying to validate it as a Jira app

 

The schema that the Marketplace seems to validate against for Bitbucket is https://api.bitbucket.org/connect.json

Oleksandr Kurakin November 8, 2020

Thank you! You saved my time 🙂 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events