For all API operations, we strip the OpenAPI tag from the actual operation ID to determine the method name; for example, app-get-app becomes client.app.getApp.
This works for all operations, EXCEPT the "SSH/SFTP USER" tag; operations using this tags have their ID starting with either sftp-user or ssh-user, but not sshsftp-user. This leads to clunky method names that are inconsistent with the rest of the client:
|
public readonly sshsftpUser = { |
|
/** Get all SFTPUsers for a Project. */ |
|
sftpUserListSftpUsers: this.requestFunctionFactory( |
|
descriptors.sftpUserListSftpUsers, |
|
), |
|
/** Create an SFTPUser for a Project. */ |
|
sftpUserCreateSftpUser: this.requestFunctionFactory( |
|
descriptors.sftpUserCreateSftpUser, |
|
), |
This could probably be easily fixed by adding a few substitution rules in the client generation; however, this would constitute a breaking change.
For all API operations, we strip the OpenAPI tag from the actual operation ID to determine the method name; for example,
app-get-appbecomesclient.app.getApp.This works for all operations, EXCEPT the "SSH/SFTP USER" tag; operations using this tags have their ID starting with either
sftp-userorssh-user, but notsshsftp-user. This leads to clunky method names that are inconsistent with the rest of the client:api-client-js/packages/mittwald/src/generated/v2/client.ts
Lines 1117 to 1125 in 937dcd4
This could probably be easily fixed by adding a few substitution rules in the client generation; however, this would constitute a breaking change.