How to use has_project_permission condition in ACE app descriptor

I would like to conditionally show a link in the adminPages module on the repository settings LHS nav sidebar. Bitbucket refuses to install a descriptor when using has_project_permission with

"modules": {
    "adminPages": [  ...
      {
        "conditions": [
          {
            "condition": "has_project_permission",
            "invert": false,
            "params": {
              "permission": "admin"
            }
          }
        ],
        "url": "/project-settings-page.html?projectId={repository.project.uuid}", ...
      }
    ]
  }

According to the official schema has_project_permission is a valid condition.

Problems

  1. The app descriptor does not install when has_project_permission is used. (has_workspace_permission works fine)
  2. The condition is undocumented.

Any help or solutions for using the has_project_permission in the descriptor is appreciated.

Kind regards, Ulrich