const ui = {
search: byRole('searchbox'),
- title: byRole('link', { name: 'Swagger Petstore - OpenAPI 3.0 1.0.17' }),
+ title: byRole('link', { name: 'Swagger Petstore - OpenAPI 3.0' }),
searchClear: byRole('button', { name: 'clear' }),
showInternal: byRole('checkbox', { name: 'api_documentation.show_internal_v2' }),
apiScopePet: byRole('button', { name: 'pet' }),
return true;
}
- private boolean validateScmAccounts(DbSession dbSession, List<String> scmAccounts, @Nullable String login, @Nullable String email,
- @Nullable UserDto existingUser,
+ private boolean validateScmAccounts(DbSession dbSession, List<String> scmAccounts, @Nullable String login, @Nullable String email, @Nullable UserDto existingUser,
List<String> messages) {
boolean isValid = true;
for (String scmAccount : scmAccounts) {
matchingUsersWithoutExistingUser.add(getNameOrLogin(matchingUser) + " (" + matchingUser.getLogin() + ")");
}
if (!matchingUsersWithoutExistingUser.isEmpty()) {
- messages.add(format("The scm account '%s' is already used by user(s) : '%s'", scmAccount,
- Joiner.on(", ").join(matchingUsersWithoutExistingUser)));
+ messages.add(format("The scm account '%s' is already used by user(s) : '%s'", scmAccount, Joiner.on(", ").join(matchingUsersWithoutExistingUser)));
isValid = false;
}
}
return new OpenAPI()
.info(new Info()
.title("SonarQube Web API v2")
- .version("1.0.0 alpha")
.description("""
The SonarQube API v2 is a REST API which enables you to interact with SonarQube programmatically. Endpoint listed here should work as expected.
However, you should not consider the API stable for now as it is still under development. New releases of SonarQube can bring changes to existing endpoint definitions.