Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

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

Thank you! You saved my time 🙂 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

New Cloud Apps Roundup - Spring 2021

Atlassian's marketplace partners have had a very productive start to 2021! Since our last roundup, our developer community has added over 160 new cloud apps to the Atlassian Marketplace to help you...

89 views 1 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you