Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Body param name in ConnectorFunction #2742

Open
LucGenetier opened this issue Nov 15, 2024 · 0 comments
Open

Fix Body param name in ConnectorFunction #2742

LucGenetier opened this issue Nov 15, 2024 · 0 comments

Comments

@LucGenetier
Copy link
Contributor

We basically have a ConnectorFunction with a body param (IsBodyParameter == true), but the body name hint is not respected.

Image

The operation contains the XMsBodyName extension, which should make it so that the body parameter is called item.
In practice however, the name ends up as dynamicProperties, which is incorrect, and therefore the call to the connector fails with 400.

--

Quick analysis

we see the body name being retrieved at line 1444 and we'll use it properly at line 1514 when creating OpenApiParameter but it's not the case at line 1490...

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant