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

Cannot parse x-functions-key parameter #226

Description

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"

Activity

  1. Shwetap05 commented on Oct 22, 2019

    @Shwetap05
    Member

    Arefin Sami (@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.

  2. shaykalyan commented on Apr 30, 2020

    @shaykalyan

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions