Skip to content

Inconsistent naming of "sshsftpUser" functions #154

@martin-helmich

Description

@martin-helmich

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions