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.
The root cause of this issue was:
The schema that the Marketplace seems to validate against for Bitbucket is https://api.bitbucket.org/connect.json
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.