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