The #/components/schemas/account definition no longer matches the reality.
For example, the endpoint of https://api.bitbucket.org/2.0/repositories/<userame>/<repository>/branch-restrictions returns the following users object (account object according to the specs):
"display_name": <string>
"links": <account_links>,
"type": "user",
"uuid": <string>
"account_id": <string>
"nickname": <string>
Which mismatches the definition of https://dac-static.atlassian.com/cloud/bitbucket/swagger.v3.json. I believe the following points would summarize this:
- remove `username` from the schema
- add `account_id`, `nickname`, `display_name` and `uuid` to the schema
Let me know if more information is needed.