Skip to content

Issue when converting from camel case to snake case for python generation #4531

Open
@hvuhsg

Description

@hvuhsg

I have a parameter that called imageURL
and its converted to image_u_r_l

Also happening for file names, for example notrixSDK becomes notrix_s_d_k.py

Activity

changed the title [-]Issue when converting from camel case to lower case for python generation[/-] [+]Issue when converting from camel case to snake case for python generation[/+] on Apr 22, 2024
added
type:bugA broken experience
help wantedIssue caused by core project dependency modules or library
on Apr 22, 2024
baywet

baywet commented on Apr 22, 2024

@baywet
Member

Hi @hvuhsg
Thanks for reporting this and for using kiota.
The implementation for the Snake casing is here
And the unit tests here

It could be amended to NOT add an underscore if the following character is uppercase.

Is this something you'd be willing to submit a pull request for?

hvuhsg

hvuhsg commented on May 6, 2024

@hvuhsg
Author

Yes, on it!

hvuhsg

hvuhsg commented on May 6, 2024

@hvuhsg
Author

Opened a PR:
#4608

added this to the Kiota v1.15 milestone on May 6, 2024
moved this from Todo 📃 to In Progress 🚧 in Kiotaon May 6, 2024
moved this from In Progress 🚧 to In Review 💭 in Kiotaon May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pythonhelp wantedIssue caused by core project dependency modules or librarytype:bugA broken experience

    Type

    No type

    Projects

    Status

    In Review 💭

    Relationships

    None yet

      Participants

      @andrueastman@baywet@hvuhsg

      Issue actions

        Issue when converting from camel case to snake case for python generation · Issue #4531 · microsoft/kiota