azure-functions-openapi-extension icon indicating copy to clipboard operation
azure-functions-openapi-extension copied to clipboard

feature request: influence/customize yaml generation

Open clw-helb opened this issue 3 years ago • 0 comments

My AzureFunction ( i.e. its attributes/annotations ) looks something like this:

[FunctionName("GetQuotes")]
[OpenApiOperation(operationId: "GetQuotes", tags: new[] { "quotes" })]
[OpenApiResponseWithBody(statusCode: HttpStatusCode.OK, contentType: "application/json", bodyType: typeof(QuotesDto), Description = "The OK response")]

In the generated yaml QuotesDto is converted to quotesDto .

      responses:
        '200':
          description: The OK response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/quotesDto'

How can I enforce the casing of the C# classnames? I.e.

      responses:
        '200':
          description: The OK response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QuotesDto'

clw-helb avatar Apr 07 '22 10:04 clw-helb