Skip to content

[Bug]: Python emitter uses mangled name when making requests if parameter name matches method in Mapping protocol #10247

@johanste

Description

@johanste

Describe the bug

It looks like the name mangling/avoiding name conflict with base mapping protocol for models leak out to how we build request bodies.

Reproduction

@service
namespace MyService;

op doSomething(items: string[]): void;

Emit python. Look at request body. Uses items_property as the key on the wire.

Checklist

Metadata

Metadata

Labels

bugSomething isn't workingemitter:client:pythonIssue for the Python client emitter: @typespec/http-client-python

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions