Skip to content

Generator does not properly escape back tick character in parameter names. #3

@brianmullinsbsd

Description

@brianmullinsbsd

I ran the code generator against the current Swagger defs last Friday. Unfortunately, the /lti/groups/{group_id}/names_and_roles endpoint includes a parameter called rlid. Yes, those are back ticks in the actual parameter name. When the code generator generates the code for this method it produces the following:

if ($Rlid) { $Body["`rlid`"] = $Rlid }

This is not valid as it never is closing the ". The correct code should be:

if ($Rlid) { $Body["``rlid``"] = $Rlid }

This escapes the back tick on both ends and closes the string properly.

I've corrected this by hand in the resulting code. If I get some time this week I'll try to contribute a fix.

Thanks,

Brian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions