Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Cannot parse x-functions-key parameter #226

Open
arefinsami opened this issue Oct 5, 2019 · 2 comments
Open

Cannot parse x-functions-key parameter #226

arefinsami opened this issue Oct 5, 2019 · 2 comments

Comments

@arefinsami
Copy link

arefinsami commented Oct 5, 2019

I have a header parameter like the following-
<param name="x-functions-key" cref="string" in="header">The secret key to call the function.</param>

But the swagger api parses it like "x-functions-key-functions-key"

@Shwetap05
Copy link
Member

Shwetap05 commented Oct 22, 2019

@arefinsami This is an already existing roslyn issue, if you look at the xml you are providing to the library it would contain the param name as "x-functions-key-functions-key". And since we were not sure when roslyn will fix the issue, to workaround this set RemoveRoslynDuplicateStringFromParamName in OpenApiDocumentGenerationSettings to true and pass it to the GenerateDocument method. Let us know if this doesn't solve the issue for you.

@shaykalyan
Copy link

shaykalyan commented Apr 30, 2020

@Shwetap05, is it possible to configure the RemoveRoslynDuplicateStringFromParamName setting when using the OpenAPI Document Tools - Build Task?

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

No branches or pull requests

3 participants