Skip to content

Question: how to make snakize to ignore some abbreviation? #2794

@Sczlog

Description

@Sczlog

Problem statement

I have an operation which name is UpdateClusterEnableISCSISetting, ISCSI is an abbreviation so it should be uppercase, but snakize will convert it to i_s_c_s_i, so UpdateClusterEnableISCSISetting is convert to update_cluster_enable_i_s_c_s_i_setting which looked so weird. How can I tell go swagger not to snakize some abbreviatiojn like ISCSI or other things?
I read the code and find a LanguageOpts will determine how snakize work, but I don't find how to modify it.

Environment

swagger version: latest
go version: 1.17
OS: win10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions