OpenAPI.NET.CSharpAnnotations icon indicating copy to clipboard operation
OpenAPI.NET.CSharpAnnotations copied to clipboard

Cannot parse x-functions-key parameter

Open arefinsami opened this issue 5 years ago • 2 comments

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"

arefinsami avatar Oct 05 '19 17:10 arefinsami

@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.

Shwetap05 avatar Oct 22 '19 19:10 Shwetap05

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

shaykalyan avatar Apr 30 '20 00:04 shaykalyan