Skip to content

DELETE methods with no schema have 2XX response. #366

@andrueastman

Description

@andrueastman

Possibly a regression from to #357

The Delete methods generated with the latest version of the library now have the 2XX status range as opposes to the 204 code.

example

    delete:
      tags:
        - communications.callRecord
      summary: Delete navigation property segments for communications
      operationId: communications.callRecords.sessions.DeleteSegments
      parameters:
        - name: If-Match
          in: header
          description: ETag
          schema:
            type: string
      responses:
        2XX:
          description: Success
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation

This results in Kiota generating return types for these methods for delete requests which may be misleading from a consumer point of view.

Metadata

Metadata

Assignees

Labels

priority:p0Blocking issue/ loss of critical functions. An ICM may be filed to communicate urgency. SLA<=48hrstype:regressionA bug from previous release

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions